@@ -25,10 +25,10 @@ |
||
25 | 25 | |
26 | 26 | $rootNode |
27 | 27 | ->beforeNormalization() |
28 | - ->ifTrue(function ($v) { |
|
28 | + ->ifTrue(function($v) { |
|
29 | 29 | return is_array($v) && !array_key_exists('connections', $v); |
30 | 30 | }) |
31 | - ->then(function ($v) { |
|
31 | + ->then(function($v) { |
|
32 | 32 | $excludedKeys = ['default_connection']; |
33 | 33 | $connection = []; |
34 | 34 | foreach ($v as $key => $value) { |
@@ -20,7 +20,7 @@ |
||
20 | 20 | $resolver |
21 | 21 | ->setRequired(['measurement', 'tag_key']) |
22 | 22 | ->setDefaults([ |
23 | - 'choices' => function (Options $options) { |
|
23 | + 'choices' => function(Options $options) { |
|
24 | 24 | return $this->loadChoicesFromQuery( |
25 | 25 | sprintf( |
26 | 26 | 'SHOW TAG VALUES FROM "%s" WITH KEY = "%s"', |
@@ -20,7 +20,7 @@ |
||
20 | 20 | $resolver |
21 | 21 | ->setRequired('measurement') |
22 | 22 | ->setDefaults([ |
23 | - 'choices' => function (Options $options) { |
|
23 | + 'choices' => function(Options $options) { |
|
24 | 24 | return $this->loadChoicesFromQuery( |
25 | 25 | sprintf( |
26 | 26 | 'SHOW FIELD KEYS FROM "%s"', |
@@ -21,7 +21,7 @@ |
||
21 | 21 | |
22 | 22 | $resolver |
23 | 23 | ->setDefaults([ |
24 | - 'choices' => function (Options $options) { |
|
24 | + 'choices' => function(Options $options) { |
|
25 | 25 | return $this->loadChoicesFromQuery( |
26 | 26 | 'SHOW MEASUREMENTS', |
27 | 27 | 'name', |
@@ -68,7 +68,7 @@ |
||
68 | 68 | ? $this->connectionRegistry->getHttpConnection($connectionName) |
69 | 69 | : $this->connectionRegistry->getDefaultHttpConnection() |
70 | 70 | ; |
71 | - $measurements = array_map(function ($point) use ($columnName) { |
|
71 | + $measurements = array_map(function($point) use ($columnName) { |
|
72 | 72 | return $point[$columnName]; |
73 | 73 | }, $connection->query($query)->getPoints()); |
74 | 74 |
@@ -22,7 +22,7 @@ |
||
22 | 22 | $resolver |
23 | 23 | ->setRequired('measurement') |
24 | 24 | ->setDefaults([ |
25 | - 'choices' => function (Options $options) { |
|
25 | + 'choices' => function(Options $options) { |
|
26 | 26 | $choices = $this->loadChoicesFromQuery( |
27 | 27 | sprintf('SHOW TAG KEYS FROM "%s"', $options['measurement']), |
28 | 28 | 'tagKey', |