@@ -13,7 +13,7 @@ |
||
| 13 | 13 | |
| 14 | 14 | if (isset($response['columns'], $response['data'])) { |
| 15 | 15 | $data=[]; |
| 16 | - array_walk($response['columns'], static function (&$value, $key) { |
|
| 16 | + array_walk($response['columns'], static function (&$value, $key) { |
|
| 17 | 17 | $value= array_keys($value)[0]; |
| 18 | 18 | }); |
| 19 | 19 | foreach ($response['data'] as $property) { |
@@ -12,12 +12,12 @@ |
||
| 12 | 12 | $response = parent::getResponse(); |
| 13 | 13 | |
| 14 | 14 | if (isset($response['columns'], $response['data'])) { |
| 15 | - $data=[]; |
|
| 16 | - array_walk($response['columns'], static function (&$value, $key) { |
|
| 17 | - $value= array_keys($value)[0]; |
|
| 15 | + $data = []; |
|
| 16 | + array_walk($response['columns'], static function(&$value, $key) { |
|
| 17 | + $value = array_keys($value)[0]; |
|
| 18 | 18 | }); |
| 19 | 19 | foreach ($response['data'] as $property) { |
| 20 | - if (count($response['columns'])>2) { |
|
| 20 | + if (count($response['columns']) > 2) { |
|
| 21 | 21 | $data[array_shift($property)] = $property; |
| 22 | 22 | } else { |
| 23 | 23 | $data[$property[$response['columns'][0]]] = $property[$response['columns'][1]]; |