@@ -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 | /** |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | */ |
| 40 | 40 | public function buildUdpClient() |
| 41 | 41 | { |
| 42 | - $client = new Client($this->host,$this->udpPort); |
|
| 42 | + $client = new Client($this->host, $this->udpPort); |
|
| 43 | 43 | $client->setDriver(new UDP($this->host, $this->udpPort)); |
| 44 | 44 | |
| 45 | 45 | return $client; |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | */ |
| 51 | 51 | public function buildHttpClient() |
| 52 | 52 | { |
| 53 | - return new Client($this->host,$this->udpPort); |
|
| 53 | + return new Client($this->host, $this->udpPort); |
|
| 54 | 54 | } |
| 55 | 55 | |
| 56 | 56 | } |
@@ -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 | /** |