| Conditions | 5 |
| Paths | 6 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 5.1158 |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | 5 | public static function checkIfKeysNotExist(array $keys, array $array) |
|
| 21 | { |
||
| 22 | 5 | $output = []; |
|
| 23 | 5 | foreach ($keys as $key) { |
|
| 24 | 5 | if (!array_key_exists($key, $array) && isset($array[$key])) { |
|
| 25 | $output[] = $key; |
||
| 26 | } |
||
| 27 | } |
||
| 28 | 5 | return !empty($output) ? implode(',', $output) : true; |
|
| 29 | } |
||
| 30 | |||
| 43 |