| @@ -47,7 +47,7 @@ discard block | ||
| 47 | 47 | return static::$method(...$arguments); | 
| 48 | 48 | default: | 
| 49 | 49 | return static::getFacadeRoot() | 
| 50 | - ->$method(...$arguments); | |
| 50 | + ->$method(...$arguments); | |
| 51 | 51 | } | 
| 52 | 52 | } | 
| 53 | 53 | |
| @@ -63,7 +63,7 @@ discard block | ||
| 63 | 63 | Write::dispatch($parameters, $payload); | 
| 64 | 64 |          } else { | 
| 65 | 65 | return static::getFacadeRoot() | 
| 66 | - ->write($parameters, $payload); | |
| 66 | + ->write($parameters, $payload); | |
| 67 | 67 | } | 
| 68 | 68 | |
| 69 | 69 | return true; | 
| @@ -85,7 +85,7 @@ discard block | ||
| 85 | 85 | WritePayload::dispatch($payload, $precision, $retentionPolicy); | 
| 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; | 
| @@ -107,7 +107,7 @@ discard block | ||
| 107 | 107 | WritePoints::dispatch($points, $precision, $retentionPolicy); | 
| 108 | 108 |          } else { | 
| 109 | 109 | return static::getFacadeRoot() | 
| 110 | - ->writePoints($points, $precision, $retentionPolicy); | |
| 110 | + ->writePoints($points, $precision, $retentionPolicy); | |
| 111 | 111 | } | 
| 112 | 112 | |
| 113 | 113 | return true; | 
| @@ -5,7 +5,7 @@ | ||
| 5 | 5 | * @author Austin Heap <[email protected]> | 
| 6 | 6 | * @version v0.1.2 | 
| 7 | 7 | */ | 
| 8 | -declare(strict_types=1); | |
| 8 | +declare(strict_types = 1); | |
| 9 | 9 | |
| 10 | 10 |  if (!function_exists('influxdb')) { | 
| 11 | 11 | /** | 
| @@ -31,8 +31,8 @@ discard block | ||
| 31 | 31 | public function boot(): void | 
| 32 | 32 |      { | 
| 33 | 33 | $this->publishes([ | 
| 34 | -                             __DIR__ . '/config/influxdb.php' => config_path('influxdb.php'), | |
| 35 | - ]); | |
| 34 | +                                __DIR__ . '/config/influxdb.php' => config_path('influxdb.php'), | |
| 35 | + ]); | |
| 36 | 36 | |
| 37 | 37 | $this->mergeConfigFrom(__DIR__ . '/config/influxdb.php', 'influxdb'); | 
| 38 | 38 | |
| @@ -64,12 +64,12 @@ discard block | ||
| 64 | 64 | } | 
| 65 | 65 | |
| 66 | 66 |                  $dsn = sprintf('%s://%s:%s@%s:%s/%s', | 
| 67 | - $protocol, | |
| 68 | -                               config('influxdb.user'), | |
| 69 | -                               config('influxdb.pass'), | |
| 70 | -                               config('influxdb.host'), | |
| 71 | -                               config('influxdb.port'), | |
| 72 | -                               config('influxdb.database') | |
| 67 | + $protocol, | |
| 68 | +                                config('influxdb.user'), | |
| 69 | +                                config('influxdb.pass'), | |
| 70 | +                                config('influxdb.host'), | |
| 71 | +                                config('influxdb.port'), | |
| 72 | +                                config('influxdb.database') | |
| 73 | 73 | ); | 
| 74 | 74 | |
| 75 | 75 | return InfluxClient::fromDSN($dsn, $timeout, $verifySsl); | 
| @@ -53,7 +53,7 @@ | ||
| 53 | 53 | */ | 
| 54 | 54 | public function register(): void | 
| 55 | 55 |      { | 
| 56 | -        $this->app->singleton('InfluxDb', function ($app) { | |
| 56 | +        $this->app->singleton('InfluxDb', function($app) { | |
| 57 | 57 |              try { | 
| 58 | 58 |                  $timeout   = is_int(config('influxdb.timeout', null)) ? config('influxdb.timeout') : 5; | 
| 59 | 59 |                  $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.2 | 
| 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.2 | 
| 7 | 7 | */ | 
| 8 | -declare(strict_types=1); | |
| 8 | +declare(strict_types = 1); | |
| 9 | 9 | |
| 10 | 10 | namespace AustinHeap\Database\InfluxDb\Jobs; | 
| 11 | 11 | |
| @@ -91,10 +91,10 @@ | ||
| 91 | 91 | public function handle() | 
| 92 | 92 |      { | 
| 93 | 93 | InfluxDbServiceProvider::getInstance() | 
| 94 | - ->writePayload( | |
| 95 | - $this->payload, | |
| 96 | - $this->precision, | |
| 97 | - $this->retentionPolicy | |
| 98 | - ); | |
| 94 | + ->writePayload( | |
| 95 | + $this->payload, | |
| 96 | + $this->precision, | |
| 97 | + $this->retentionPolicy | |
| 98 | + ); | |
| 99 | 99 | } | 
| 100 | 100 | } | 
| @@ -53,9 +53,9 @@ | ||
| 53 | 53 | public function handle() | 
| 54 | 54 |      { | 
| 55 | 55 | InfluxDbServiceProvider::getInstance() | 
| 56 | - ->write( | |
| 57 | - $this->parameters, | |
| 58 | - $this->payload | |
| 59 | - ); | |
| 56 | + ->write( | |
| 57 | + $this->parameters, | |
| 58 | + $this->payload | |
| 59 | + ); | |
| 60 | 60 | } | 
| 61 | 61 | } | 
| @@ -91,10 +91,10 @@ | ||
| 91 | 91 | public function handle() | 
| 92 | 92 |      { | 
| 93 | 93 | InfluxDbServiceProvider::getInstance() | 
| 94 | - ->writePoints( | |
| 95 | - $this->points, | |
| 96 | - $this->precision, | |
| 97 | - $this->retentionPolicy | |
| 98 | - ); | |
| 94 | + ->writePoints( | |
| 95 | + $this->points, | |
| 96 | + $this->precision, | |
| 97 | + $this->retentionPolicy | |
| 98 | + ); | |
| 99 | 99 | } | 
| 100 | 100 | } |