| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | 2 | protected function doCheck() |
|
| 35 | { |
||
| 36 | $sql = 'SELECT Name |
||
| 37 | 2 | FROM Constants'; |
|
| 38 | 2 | $source_constants = $this->sourceDatabase->fetchCol($sql); |
|
| 39 | 2 | $target_constants = $this->targetDatabase->fetchCol($sql); |
|
| 40 | |||
| 41 | 2 | foreach ( $source_constants as $source_constant_name ) { |
|
| 42 | 2 | if ( !in_array($source_constant_name, $target_constants) ) { |
|
| 43 | 1 | $this->addIncident(self::TYPE_CONSTANT_DELETED, $source_constant_name); |
|
| 44 | 1 | continue; |
|
| 45 | } |
||
| 46 | 2 | } |
|
| 47 | 2 | } |
|
| 48 | |||
| 50 |