Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
50 | 2 | protected function doCheck() |
|
51 | { |
||
52 | $sql = 'SELECT Name |
||
53 | 2 | FROM Constants'; |
|
54 | 2 | $source_constants = $this->sourceDatabase->fetchCol($sql); |
|
55 | 2 | $target_constants = $this->targetDatabase->fetchCol($sql); |
|
56 | |||
57 | 2 | foreach ( $source_constants as $source_constant_name ) { |
|
58 | 2 | if ( !in_array($source_constant_name, $target_constants) ) { |
|
59 | 1 | $this->addIncident(self::TYPE_CONSTANT_DELETED, $source_constant_name); |
|
60 | 1 | continue; |
|
61 | } |
||
62 | 2 | } |
|
63 | 2 | } |
|
64 | |||
66 |