Passed
Push — 1.x ( 966118...747b4c )
by Adrian
02:12
created
src/Manticoresearch/Response/SqlToArray.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,12 +12,12 @@
 block discarded – undo
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]];
Please login to merge, or discard this patch.