@@ -24,7 +24,7 @@ |
||
24 | 24 | |
25 | 25 | |
26 | 26 | $intervals = []; |
27 | - array_walk($response, function ($value, $key) use (&$intervals) { |
|
27 | + array_walk($response, function($value, $key) use (&$intervals) { |
|
28 | 28 | $intervals[] = array_merge($value, ['interval' => $key]); |
29 | 29 | }); |
30 | 30 |
@@ -22,7 +22,7 @@ |
||
22 | 22 | // Build a groupBy query. |
23 | 23 | $builder = $client->query('wikipedia') |
24 | 24 | ->interval('2015-09-12 20:00:00', '2015-09-12 22:00:00') |
25 | - ->select('__time', 'hour', function (ExtractionBuilder $extractionBuilder) { |
|
25 | + ->select('__time', 'hour', function(ExtractionBuilder $extractionBuilder) { |
|
26 | 26 | $extractionBuilder->timeFormat('yyyy-MM-dd HH:00:00'); |
27 | 27 | }) |
28 | 28 | ->select('namespace') |
@@ -72,7 +72,7 @@ |
||
72 | 72 | foreach ($data as $i => $row) { |
73 | 73 | $table .= '| '; |
74 | 74 | |
75 | - foreach( $this->columns as $column => $length ) { |
|
75 | + foreach ($this->columns as $column => $length) { |
|
76 | 76 | $table .= str_pad((string)($row[$column] ?? ''), $length) . ' | '; |
77 | 77 | } |
78 | 78 | $table .= PHP_EOL; |
@@ -55,7 +55,7 @@ |
||
55 | 55 | { |
56 | 56 | $this->setupConfig(); |
57 | 57 | |
58 | - $this->app->singleton(DruidClient::class, function () { |
|
58 | + $this->app->singleton(DruidClient::class, function() { |
|
59 | 59 | $client = new DruidClient($this->app['config']['druid']); |
60 | 60 | $client->setLogger($this->app['log']); |
61 | 61 |