Total Complexity | 4 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | final class GetIterableTester |
||
14 | { |
||
15 | public static function assertResultsAreTheSame(Query $query) : void |
||
21 | } |
||
22 | |||
23 | /** |
||
24 | * Copy the iterable into an array. If the iterable is already an array, return it. |
||
25 | * |
||
26 | * @param bool $use_keys [optional] Whether to use the iterator element keys as index. |
||
27 | * |
||
28 | * @return array |
||
29 | */ |
||
30 | private static function iterableToArray(iterable $iterable, $use_keys = true) : array |
||
39 |