@@ -29,8 +29,8 @@ discard block |
||
| 29 | 29 | public function boot(): void |
| 30 | 30 | { |
| 31 | 31 | $this->publishes([ |
| 32 | - __DIR__.'/config/influxdb.php' => config_path('influxdb.php'), |
|
| 33 | - ]); |
|
| 32 | + __DIR__.'/config/influxdb.php' => config_path('influxdb.php'), |
|
| 33 | + ]); |
|
| 34 | 34 | |
| 35 | 35 | $this->mergeConfigFrom(__DIR__.'/config/influxdb.php', 'influxdb'); |
| 36 | 36 | |
@@ -62,12 +62,12 @@ discard block |
||
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | $dsn = sprintf('%s://%s:%s@%s:%s/%s', |
| 65 | - $protocol, |
|
| 66 | - config('influxdb.user'), |
|
| 67 | - config('influxdb.pass'), |
|
| 68 | - config('influxdb.host'), |
|
| 69 | - config('influxdb.port'), |
|
| 70 | - config('influxdb.database') |
|
| 65 | + $protocol, |
|
| 66 | + config('influxdb.user'), |
|
| 67 | + config('influxdb.pass'), |
|
| 68 | + config('influxdb.host'), |
|
| 69 | + config('influxdb.port'), |
|
| 70 | + config('influxdb.database') |
|
| 71 | 71 | ); |
| 72 | 72 | |
| 73 | 73 | return InfluxClient::fromDSN($dsn, $timeout, $verifySsl); |
@@ -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; |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | return static::$method(...$arguments); |
| 46 | 46 | default: |
| 47 | 47 | return static::getFacadeRoot() |
| 48 | - ->$method(...$arguments); |
|
| 48 | + ->$method(...$arguments); |
|
| 49 | 49 | } |
| 50 | 50 | } |
| 51 | 51 | |
@@ -59,10 +59,10 @@ discard block |
||
| 59 | 59 | { |
| 60 | 60 | if (config('influxdb.queue.enable', false) === true) { |
| 61 | 61 | Write::dispatch($parameters, $payload) |
| 62 | - ->onQueue(config('influxdb.queue.name', 'default')); |
|
| 62 | + ->onQueue(config('influxdb.queue.name', 'default')); |
|
| 63 | 63 | } else { |
| 64 | 64 | return static::getFacadeRoot() |
| 65 | - ->write($parameters, $payload); |
|
| 65 | + ->write($parameters, $payload); |
|
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | return true; |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | ->onQueue(config('influxdb.queue.name', 'default')); |
| 86 | 86 | } else { |
| 87 | 87 | return static::getFacadeRoot() |
| 88 | - ->writePayload($payload, $precision, $retentionPolicy); |
|
| 88 | + ->writePayload($payload, $precision, $retentionPolicy); |
|
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | return true; |
@@ -105,10 +105,10 @@ discard block |
||
| 105 | 105 | ): bool { |
| 106 | 106 | if (config('influxdb.queue.enable', false) === true) { |
| 107 | 107 | WritePoints::dispatch($points, $precision, $retentionPolicy) |
| 108 | - ->onQueue(config('influxdb.queue.name', 'default')); |
|
| 108 | + ->onQueue(config('influxdb.queue.name', 'default')); |
|
| 109 | 109 | } else { |
| 110 | 110 | return static::getFacadeRoot() |
| 111 | - ->writePoints($points, $precision, $retentionPolicy); |
|
| 111 | + ->writePoints($points, $precision, $retentionPolicy); |
|
| 112 | 112 | } |
| 113 | 113 | |
| 114 | 114 | return 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; |
| 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 @@ |
||
| 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 | |
@@ -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 @@ |
||
| 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 | |
@@ -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 @@ |
||
| 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,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 | */ |
@@ -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 | |