| 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 |
||
| 41 | protected function whatEvenIsThis(array $a, array $b): array |
||
| 42 | { |
||
| 43 | /* |
||
| 44 | if both primary and secondary are empty this will return false |
||
| 45 | because the "array_diff" family of functions returns an empty array |
||
| 46 | if the first array provided is empty itself. if both arrays are |
||
| 47 | empty this will return an empty array as there is no difference. |
||
| 48 | */ |
||
| 49 | return !empty($a) |
||
| 50 | ? $this->notIn($a, $b) |
||
| 51 | : $this->notIn($b, $a); |
||
| 52 | } |
||
| 54 |