| Total Complexity | 7 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | trait SequentialTrait |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Check if the provided array is sequential or not |
||
| 9 | * |
||
| 10 | * @param array $array |
||
| 11 | * |
||
| 12 | * @return bool |
||
| 13 | */ |
||
| 14 | 61 | protected function isSequential(array $array) |
|
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param array $arrays Collection of arrays to check |
||
| 24 | * |
||
| 25 | * @return bool True if all the arrays are sequential |
||
| 26 | */ |
||
| 27 | 43 | protected function areSequential(array $arrays) |
|
| 38 |