| @@ -54,10 +54,10 @@ | ||
| 54 | 54 | * @access public |
| 55 | 55 | * @param string $conflict A conflict class name. |
| 56 | 56 | */ |
| 57 | 57 | public function watch( $conflict ) { |
| 58 | - if ( is_subclass_of( new $conflict, 'Optml_Abstract_Conflict' ) ) { | |
| 59 | - array_push( $this->watched_conflicts, new $conflict ); | |
| 58 | + if ( is_subclass_of( new $conflict(), 'Optml_Abstract_Conflict' ) ) { | |
| 59 | + array_push( $this->watched_conflicts, new $conflict() ); | |
| 60 | 60 | } |
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | /** |
| @@ -152,9 +152,9 @@ | ||
| 152 | 152 | * @var Optml_Abstract_Conflict $conflict |
| 153 | 153 | */ |
| 154 | 154 | foreach ( $this->watched_conflicts as $conflict ) { |
| 155 | 155 | if ( $conflict->is_active( $this->dismissed_conflicts ) ) { |
| 156 | - $count++; | |
| 156 | + ++$count; | |
| 157 | 157 | } |
| 158 | 158 | } |
| 159 | 159 | return $count; |
| 160 | 160 | } |