| Conditions | 4 |
| Paths | 3 |
| Total Lines | 6 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 44 | public static function isArraySequential(array $source, bool $forceCustomImplementation = false): bool |
||
| 45 | { |
||
| 46 | if (!\function_exists('array_is_list') || $forceCustomImplementation) { |
||
| 47 | return \count($source) === 0 || \array_keys($source) === \range(0, \count($source) - 1); |
||
| 48 | } |
||
| 49 | return \array_is_list($source); |
||
| 50 | } |
||
| 52 |