@@ -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) { |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Algatux\InfluxDbBundle\Form\Type; |
6 | 6 | |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | |
25 | 25 | $resolver |
26 | 26 | ->setDefaults([ |
27 | - 'choices' => function (Options $options) { |
|
27 | + 'choices' => function(Options $options) { |
|
28 | 28 | return $this->loadChoicesFromQuery( |
29 | 29 | 'SHOW MEASUREMENTS', |
30 | 30 | 'name', |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Algatux\InfluxDbBundle\Form\Type; |
6 | 6 | |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | ? $this->connectionRegistry->getHttpConnection($connectionName) |
46 | 46 | : $this->connectionRegistry->getDefaultHttpConnection() |
47 | 47 | ; |
48 | - $measurements = array_map(function ($point) use ($columnName) { |
|
48 | + $measurements = array_map(function($point) use ($columnName) { |
|
49 | 49 | return $point[$columnName]; |
50 | 50 | }, $connection->query($query)->getPoints()); |
51 | 51 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Algatux\InfluxDbBundle\Form\Type; |
6 | 6 | |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | $resolver |
23 | 23 | ->setRequired(['measurement', 'tag_key']) |
24 | 24 | ->setDefaults([ |
25 | - 'choices' => function (Options $options) { |
|
25 | + 'choices' => function(Options $options) { |
|
26 | 26 | return $this->loadChoicesFromQuery( |
27 | 27 | sprintf( |
28 | 28 | '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 | 'SELECT fieldKey FROM "default"._fieldKeys WHERE _name = \'%s\'', |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Algatux\InfluxDbBundle\Form\Type; |
6 | 6 | |
@@ -22,7 +22,7 @@ discard block |
||
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', |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Algatux\InfluxDbBundle\Command; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Algatux\InfluxDbBundle\Services; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Algatux\InfluxDbBundle\Exception; |
6 | 6 |