@@ -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,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 | /** |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | */ |
46 | 46 | public function buildUdpClient(): Database |
47 | 47 | { |
48 | - $client = new Client($this->host,$this->udpPort); |
|
48 | + $client = new Client($this->host, $this->udpPort); |
|
49 | 49 | $client->setDriver(new UDP($this->host, $this->udpPort)); |
50 | 50 | |
51 | 51 | return $client->selectDB($this->database); |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | */ |
57 | 57 | public function buildHttpClient(): Database |
58 | 58 | { |
59 | - $client = new Client($this->host,$this->httpPort); |
|
59 | + $client = new Client($this->host, $this->httpPort); |
|
60 | 60 | |
61 | 61 | return $client->selectDB($this->database); |
62 | 62 | } |
@@ -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 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace Algatux\InfluxDbBundle\Services\Clients; |
4 | 4 | |
5 | 5 | use Algatux\InfluxDbBundle\Services\Clients\Contracts\ClientInterface; |
@@ -24,8 +24,7 @@ discard block |
||
24 | 24 | public function __construct(InfluxDbClientFactory $factory, $clientType) |
25 | 25 | { |
26 | 26 | $this->client = $clientType === ClientInterface::HTTP_CLIENT ? |
27 | - $factory->buildHttpClient() : |
|
28 | - $factory->buildUdpClient(); |
|
27 | + $factory->buildHttpClient() : $factory->buildUdpClient(); |
|
29 | 28 | } |
30 | 29 | |
31 | 30 | /** |
@@ -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 | /** |