@@ -47,6 +47,6 @@ |
||
| 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 |
@@ -13,7 +13,7 @@ |
||
| 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 | |
@@ -12,7 +12,7 @@ |
||
| 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 | } |
@@ -16,7 +16,7 @@ |
||
| 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 | } |
@@ -30,7 +30,7 @@ |
||
| 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']; |
@@ -14,7 +14,7 @@ |
||
| 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 | } |
@@ -49,7 +49,7 @@ |
||
| 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 | } |
@@ -12,7 +12,7 @@ |
||
| 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 | } |
@@ -136,8 +136,7 @@ discard block |
||
| 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 |
||
| 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; |