Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
42 | protected function doCheck() |
||
43 | { |
||
44 | $sql = 'SELECT Name |
||
45 | FROM Constants'; |
||
46 | $source_constants = $this->sourceDatabase->fetchCol($sql); |
||
47 | $target_constants = $this->targetDatabase->fetchCol($sql); |
||
48 | |||
49 | foreach ( $source_constants as $source_constant_name ) { |
||
50 | if ( !in_array($source_constant_name, $target_constants) ) { |
||
51 | $this->addIncident('Constant Deleted', $source_constant_name); |
||
52 | continue; |
||
53 | } |
||
54 | } |
||
55 | } |
||
56 | |||
58 |