@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | |
23 | 23 | if (isset($response['columns'], $response['data'])) { |
24 | 24 | $data = []; |
25 | - array_walk($response['columns'], static function (&$value, $key) { |
|
25 | + array_walk($response['columns'], static function(&$value, $key) { |
|
26 | 26 | $value = array_keys($value)[0]; |
27 | 27 | }); |
28 | 28 | $id = -1; |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | } else { |
80 | 80 | $id++; |
81 | 81 | } |
82 | - $data[$id] = (count($property) == 1)?array_shift($property):$property; |
|
82 | + $data[$id] = (count($property) == 1) ?array_shift($property) : $property; |
|
83 | 83 | } |
84 | 84 | return (count($data) > 0) ? $data : []; |
85 | 85 | } |