@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace Algatux\InfluxDbBundle\Services\Clients\Contracts; |
4 | 4 | |
5 | 5 | /** |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace Algatux\InfluxDbBundle\Services\Clients\Contracts; |
4 | 4 | |
5 | 5 | /** |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace Algatux\InfluxDbBundle\Services\Clients\Contracts; |
4 | 4 | |
5 | 5 | /** |
@@ -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,12 +22,12 @@ discard block |
||
22 | 22 | ->setDefined('connection') |
23 | 23 | ->setRequired('measurement') |
24 | 24 | ->setDefaults([ |
25 | - 'choices' => function (Options $options) { |
|
25 | + 'choices' => function(Options $options) { |
|
26 | 26 | $connection = $options->offsetExists('connection') |
27 | 27 | ? $this->connectionRegistry->getHttpConnection($options['connection']) |
28 | 28 | : $this->connectionRegistry->getDefaultHttpConnection() |
29 | 29 | ; |
30 | - $measurements = array_map(function ($point) { |
|
30 | + $measurements = array_map(function($point) { |
|
31 | 31 | return $point['tagKey']; |
32 | 32 | }, $connection->query(sprintf('SHOW TAG KEYS FROM "%s"', $options['measurement']))->getPoints()); |
33 | 33 |
@@ -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 | |
@@ -23,12 +23,12 @@ discard block |
||
23 | 23 | $resolver |
24 | 24 | ->setDefined('connection') |
25 | 25 | ->setDefaults([ |
26 | - 'choices' => function (Options $options) { |
|
26 | + 'choices' => function(Options $options) { |
|
27 | 27 | $connection = $options->offsetExists('connection') |
28 | 28 | ? $this->connectionRegistry->getHttpConnection($options['connection']) |
29 | 29 | : $this->connectionRegistry->getDefaultHttpConnection() |
30 | 30 | ; |
31 | - $measurements = array_map(function ($point) { |
|
31 | + $measurements = array_map(function($point) { |
|
32 | 32 | return $point['name']; |
33 | 33 | }, $connection->query('SHOW MEASUREMENTS')->getPoints()); |
34 | 34 |