| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 37 | protected function whatEvenIsThis(array $a, array $b): array |
||
| 38 | { |
||
| 39 | /* |
||
| 40 | if both primary and secondary are empty this will return false |
||
| 41 | because the "array_diff" family of functions returns an empty array |
||
| 42 | if the first array provided is empty itself. if both arrays are |
||
| 43 | empty this will return an empty array as there is no difference. |
||
| 44 | */ |
||
| 45 | return !empty($a) |
||
| 46 | ? $this->notIn($a, $b) |
||
| 47 | : $this->notIn($b, $a); |
||
| 48 | } |
||
| 50 |