| Conditions | 5 |
| Paths | 5 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public static function isEqualArray(array $neededItem, array $currentItem) |
||
| 26 | { |
||
| 27 | foreach ($neededItem as $key => $value) { |
||
| 28 | if (MathUtility::canBeInterpretedAsInteger($value)) { |
||
| 29 | if ((int) $value !== (int) $currentItem[$key]) { |
||
| 30 | return false; |
||
| 31 | } |
||
| 32 | } elseif ((string) $value !== (string) $currentItem[$key]) { |
||
| 33 | return false; |
||
| 34 | } |
||
| 35 | } |
||
| 36 | |||
| 37 | return true; |
||
| 38 | } |
||
| 39 | } |
||
| 40 |