| Conditions | 3 |
| Paths | 3 |
| Total Lines | 17 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 3.0416 |
| Changes | 3 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php |
||
| 25 | 3 | protected function isUpToDate($configuration, $remoteConfiguration) |
|
| 26 | { |
||
| 27 | 3 | $diff = $this->arrayDiffAssocRecursive($configuration, $remoteConfiguration); |
|
| 28 | |||
| 29 | 3 | foreach ($remoteConfiguration as $k => $v) { |
|
| 30 | 3 | if (!isset($configuration[$k])) { |
|
| 31 | unset($remoteConfiguration[$k]); |
||
| 32 | } |
||
| 33 | 3 | } |
|
| 34 | |||
| 35 | 3 | $diff = array_merge_recursive( |
|
| 36 | 3 | $diff, |
|
| 37 | 3 | $this->arrayDiffAssocRecursive($remoteConfiguration, $configuration) |
|
| 38 | 3 | ); |
|
| 39 | |||
| 40 | 3 | return empty($diff); |
|
| 41 | } |
||
| 42 | |||
| 62 |