| @@ -5,7 +5,7 @@ | ||
| 5 | 5 | * @author Austin Heap <[email protected]> | 
| 6 | 6 | * @version v0.1.7 | 
| 7 | 7 | */ | 
| 8 | -declare(strict_types=1); | |
| 8 | +declare(strict_types = 1); | |
| 9 | 9 | |
| 10 | 10 | namespace AustinHeap\Database\InfluxDb; | 
| 11 | 11 | |
| @@ -5,7 +5,7 @@ discard block | ||
| 5 | 5 | * @author Austin Heap <[email protected]> | 
| 6 | 6 | * @version v0.1.7 | 
| 7 | 7 | */ | 
| 8 | -declare(strict_types=1); | |
| 8 | +declare(strict_types = 1); | |
| 9 | 9 | |
| 10 | 10 | namespace AustinHeap\Database\InfluxDb; | 
| 11 | 11 | |
| @@ -51,7 +51,7 @@ discard block | ||
| 51 | 51 | */ | 
| 52 | 52 | public function register(): void | 
| 53 | 53 |      { | 
| 54 | -        $this->app->singleton('InfluxDb', function ($app) { | |
| 54 | +        $this->app->singleton('InfluxDb', function($app) { | |
| 55 | 55 |              try { | 
| 56 | 56 |                  $timeout = is_int(config('influxdb.timeout', null)) ? config('influxdb.timeout') : 5; | 
| 57 | 57 |                  $verifySsl = is_bool(config('influxdb.verify_ssl', null)) ? config('influxdb.verify_ssl') : true; | 
| @@ -5,7 +5,7 @@ | ||
| 5 | 5 | * @author Austin Heap <[email protected]> | 
| 6 | 6 | * @version v0.1.7 | 
| 7 | 7 | */ | 
| 8 | -declare(strict_types=1); | |
| 8 | +declare(strict_types = 1); | |
| 9 | 9 | |
| 10 | 10 | namespace AustinHeap\Database\InfluxDb\Logs; | 
| 11 | 11 | |
| @@ -5,7 +5,7 @@ | ||
| 5 | 5 | * @author Austin Heap <[email protected]> | 
| 6 | 6 | * @version v0.1.7 | 
| 7 | 7 | */ | 
| 8 | -declare(strict_types=1); | |
| 8 | +declare(strict_types = 1); | |
| 9 | 9 | |
| 10 | 10 | namespace AustinHeap\Database\InfluxDb\Logs; | 
| 11 | 11 | |
| @@ -89,11 +89,11 @@ | ||
| 89 | 89 | public function handle() | 
| 90 | 90 |      { | 
| 91 | 91 | InfluxDbServiceProvider::getInstance() | 
| 92 | - ->writePayload( | |
| 93 | - $this->payload, | |
| 94 | - $this->precision, | |
| 95 | - $this->retentionPolicy | |
| 96 | - ); | |
| 92 | + ->writePayload( | |
| 93 | + $this->payload, | |
| 94 | + $this->precision, | |
| 95 | + $this->retentionPolicy | |
| 96 | + ); | |
| 97 | 97 | } | 
| 98 | 98 | |
| 99 | 99 | /** | 
| @@ -5,7 +5,7 @@ discard block | ||
| 5 | 5 | * @author Austin Heap <[email protected]> | 
| 6 | 6 | * @version v0.1.7 | 
| 7 | 7 | */ | 
| 8 | -declare(strict_types=1); | |
| 8 | +declare(strict_types = 1); | |
| 9 | 9 | |
| 10 | 10 | namespace AustinHeap\Database\InfluxDb\Jobs; | 
| 11 | 11 | |
| @@ -101,6 +101,6 @@ discard block | ||
| 101 | 101 | */ | 
| 102 | 102 | public function tags(): array | 
| 103 | 103 |      { | 
| 104 | - return array_merge(parent::tags(), [static::class . ':' . (is_string($this->payload) ? 1 : count($this->payload))]); | |
| 104 | + return array_merge(parent::tags(), [static::class.':'.(is_string($this->payload) ? 1 : count($this->payload))]); | |
| 105 | 105 | } | 
| 106 | 106 | } | 
| @@ -89,11 +89,11 @@ | ||
| 89 | 89 | public function handle() | 
| 90 | 90 |      { | 
| 91 | 91 | InfluxDbServiceProvider::getInstance() | 
| 92 | - ->writePoints( | |
| 93 | - $this->points, | |
| 94 | - $this->precision, | |
| 95 | - $this->retentionPolicy | |
| 96 | - ); | |
| 92 | + ->writePoints( | |
| 93 | + $this->points, | |
| 94 | + $this->precision, | |
| 95 | + $this->retentionPolicy | |
| 96 | + ); | |
| 97 | 97 | } | 
| 98 | 98 | |
| 99 | 99 | /** | 
| @@ -5,7 +5,7 @@ discard block | ||
| 5 | 5 | * @author Austin Heap <[email protected]> | 
| 6 | 6 | * @version v0.1.7 | 
| 7 | 7 | */ | 
| 8 | -declare(strict_types=1); | |
| 8 | +declare(strict_types = 1); | |
| 9 | 9 | |
| 10 | 10 | namespace AustinHeap\Database\InfluxDb\Jobs; | 
| 11 | 11 | |
| @@ -101,6 +101,6 @@ discard block | ||
| 101 | 101 | */ | 
| 102 | 102 | public function tags(): array | 
| 103 | 103 |      { | 
| 104 | - return array_merge(parent::tags(), [static::class . ':' . count($this->points)]); | |
| 104 | + return array_merge(parent::tags(), [static::class.':'.count($this->points)]); | |
| 105 | 105 | } | 
| 106 | 106 | } | 
| @@ -51,10 +51,10 @@ | ||
| 51 | 51 | public function handle() | 
| 52 | 52 |      { | 
| 53 | 53 | InfluxDbServiceProvider::getInstance() | 
| 54 | - ->write( | |
| 55 | - $this->parameters, | |
| 56 | - $this->payload | |
| 57 | - ); | |
| 54 | + ->write( | |
| 55 | + $this->parameters, | |
| 56 | + $this->payload | |
| 57 | + ); | |
| 58 | 58 | } | 
| 59 | 59 | |
| 60 | 60 | /** | 
| @@ -5,7 +5,7 @@ discard block | ||
| 5 | 5 | * @author Austin Heap <[email protected]> | 
| 6 | 6 | * @version v0.1.7 | 
| 7 | 7 | */ | 
| 8 | -declare(strict_types=1); | |
| 8 | +declare(strict_types = 1); | |
| 9 | 9 | |
| 10 | 10 | namespace AustinHeap\Database\InfluxDb\Jobs; | 
| 11 | 11 | |
| @@ -62,6 +62,6 @@ discard block | ||
| 62 | 62 | */ | 
| 63 | 63 | public function tags(): array | 
| 64 | 64 |      { | 
| 65 | - return array_merge(parent::tags(), [static::class . ':1']); | |
| 65 | + return array_merge(parent::tags(), [static::class.':1']); | |
| 66 | 66 | } | 
| 67 | 67 | } | 
| @@ -5,7 +5,7 @@ | ||
| 5 | 5 | * @author Austin Heap <[email protected]> | 
| 6 | 6 | * @version v0.1.7 | 
| 7 | 7 | */ | 
| 8 | -declare(strict_types=1); | |
| 8 | +declare(strict_types = 1); | |
| 9 | 9 | |
| 10 | 10 | namespace AustinHeap\Database\InfluxDb\Jobs; | 
| 11 | 11 | |
| @@ -5,9 +5,9 @@ | ||
| 5 | 5 | * @author Austin Heap <[email protected]> | 
| 6 | 6 | * @version v0.1.7 | 
| 7 | 7 | */ | 
| 8 | -declare(strict_types=1); | |
| 8 | +declare(strict_types = 1); | |
| 9 | 9 | |
| 10 | -if (! function_exists('influxdb')) { | |
| 10 | +if (!function_exists('influxdb')) { | |
| 11 | 11 | /** | 
| 12 | 12 | * @return \InfluxDB\Client|\InfluxDB\Database | 
| 13 | 13 | */ |