@@ -5,7 +5,7 @@ discard block |
||
| 5 | 5 | * @author Austin Heap <[email protected]> |
| 6 | 6 | * @version v0.1.6 |
| 7 | 7 | */ |
| 8 | -declare(strict_types=1); |
|
| 8 | +declare(strict_types = 1); |
|
| 9 | 9 | |
| 10 | 10 | namespace AustinHeap\Database\InfluxDb\Jobs; |
| 11 | 11 | |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | * |
| 36 | 36 | * @param array $args |
| 37 | 37 | */ |
| 38 | - public function __construct(array $args = []) |
|
| 38 | + public function __construct(array $args = [ ]) |
|
| 39 | 39 | { |
| 40 | 40 | if (count($args)) { |
| 41 | 41 | $this->args = $args; |
@@ -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; |