| Conditions | 4 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 37 | private static function arrayStartsWith(array $array, array $start): bool |
||
| 38 | { |
||
| 39 | $prefixLength = count($start); |
||
| 40 | |||
| 41 | for ($index = 0; $index < $prefixLength; ++$index) { |
||
| 42 | if (!isset($array[$index]) || $array[$index] !== $start[$index]) { |
||
| 43 | return false; |
||
| 44 | } |
||
| 45 | } |
||
| 46 | |||
| 47 | return true; |
||
| 48 | } |
||
| 89 |