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