Total Complexity | 4 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Coverage | 76.92% |
Changes | 3 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
24 | trait JsonHelperTrait |
||
25 | { |
||
26 | /** |
||
27 | * @param mixed[] $array |
||
28 | * @return stdClass |
||
29 | */ |
||
30 | 5 | public function assocArrToObject(array $array): stdClass |
|
45 | } |
||
46 | } |
||
47 | |||
48 | /** |
||
49 | * method from Kohana |
||
50 | * Tests if an array is associative or not. |
||
51 | * |
||
52 | * @param mixed[] $array |
||
53 | * @return bool |
||
54 | */ |
||
55 | 5 | public function isAssoc(array &$array): bool |
|
66 |