| Total Complexity | 9 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class Utils |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Test if a value is a sequential array. |
||
| 11 | * |
||
| 12 | * @param mixed $val The tested value. |
||
| 13 | * @param int|null $expectedLength If non null, only return true if the array length is exactly this value. |
||
| 14 | * @return bool Whether the tested value is a sequential array. |
||
| 15 | */ |
||
| 16 | public static function isSequentialArray($val, ?int $expectedLength = null): bool |
||
| 47 |