| Total Complexity | 5 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | class TArrayHelper |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * Determines if the given array is a list. An array is considered a list if its |
||
| 26 | * keys consist of consecutive numbers from 0 to count($array)-1. |
||
| 27 | * @param array|Traversable $array The array to check. |
||
| 28 | * @return bool is the array a list. |
||
| 29 | * @link https://www.php.net/manual/en/function.array-is-list.php |
||
| 30 | */ |
||
| 31 | public static function array_is_list(array|Traversable $array): bool |
||
| 46 |