Completed
Branch scrutinizer (a66750)
by Teye
06:36
created
Category
src/Queries/SegmentMetadataQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,6 +47,6 @@
 block discarded – undo
47 47
      */
48 48
     public function parseResponse(array $response): SegmentMetadataQueryResponse
49 49
     {
50
-        return new SegmentMetadataQueryResponse( $response);
50
+        return new SegmentMetadataQueryResponse($response);
51 51
     }
52 52
 }
53 53
\ No newline at end of file
Please login to merge, or discard this patch.
src/Responses/ScanQueryResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
     public function data(): array
14 14
     {
15 15
         $result = [];
16
-        array_walk($this->response, function ($row) use (&$result) {
16
+        array_walk($this->response, function($row) use (&$result) {
17 17
             array_push($result, ...$row['events']);
18 18
         });
19 19
 
Please login to merge, or discard this patch.
src/Responses/SearchQueryResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
      */
13 13
     public function data(): array
14 14
     {
15
-        return array_map(function ($row) {
15
+        return array_map(function($row) {
16 16
             return $row['result'];
17 17
         }, $this->response)[0];
18 18
     }
Please login to merge, or discard this patch.
src/Responses/TopNQueryResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
             return [];
17 17
         }
18 18
 
19
-        return array_map(function ($row) {
19
+        return array_map(function($row) {
20 20
             return $row['result'];
21 21
         }, $this->response)[0];
22 22
     }
Please login to merge, or discard this patch.
src/Responses/TimeSeriesQueryResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
      */
31 31
     public function data(): array
32 32
     {
33
-        return array_map(function ($row) {
33
+        return array_map(function($row) {
34 34
             $row['result'][$this->timeOutputName] = $row['timestamp'];
35 35
 
36 36
             return $row['result'];
Please login to merge, or discard this patch.
src/Responses/SegmentMetadataQueryResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     {
15 15
         $columns = [];
16 16
         if (isset($this->response[0]['columns'])) {
17
-            array_walk($this->response[0]['columns'], function ($value, $key) use (&$columns) {
17
+            array_walk($this->response[0]['columns'], function($value, $key) use (&$columns) {
18 18
                 $columns[] = array_merge($value, ['field' => $key]);
19 19
             });
20 20
         }
Please login to merge, or discard this patch.
src/Responses/SelectQueryResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
             return [];
50 50
         }
51 51
 
52
-        return array_map(function ($row) {
52
+        return array_map(function($row) {
53 53
             return $row['event'];
54 54
         }, $this->response[0]['result']['events']);
55 55
     }
Please login to merge, or discard this patch.
src/Responses/GroupByQueryResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
      */
13 13
     public function data(): array
14 14
     {
15
-        return array_map(function ($row) {
15
+        return array_map(function($row) {
16 16
             return $row['event'];
17 17
         }, $this->response);
18 18
     }
Please login to merge, or discard this patch.
src/Concerns/HasFilter.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -136,8 +136,7 @@  discard block
 block discarded – undo
136 136
         }
137 137
 
138 138
         strtolower($boolean) == 'and' ?
139
-            $this->addAndFilter($filter) :
140
-            $this->addOrFilter($filter);
139
+            $this->addAndFilter($filter) : $this->addOrFilter($filter);
141 140
 
142 141
         return $this;
143 142
     }
@@ -417,7 +416,7 @@  discard block
 block discarded – undo
417 416
             $intervals = [$intervals];
418 417
         }
419 418
 
420
-        return array_map(function ($interval) {
419
+        return array_map(function($interval) {
421 420
 
422 421
             if ($interval instanceof IntervalInterface) {
423 422
                 return $interval;
Please login to merge, or discard this patch.