@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | public function boot() |
| 15 | 15 | { |
| 16 | 16 | $this->publishes([ |
| 17 | - __DIR__.'/../config/query-updater.php' => config_path('query-updater.php'), |
|
| 17 | + __DIR__ . '/../config/query-updater.php' => config_path('query-updater.php'), |
|
| 18 | 18 | ], 'query-updater'); |
| 19 | 19 | } |
| 20 | 20 | |
@@ -25,6 +25,6 @@ discard block |
||
| 25 | 25 | */ |
| 26 | 26 | public function register() |
| 27 | 27 | { |
| 28 | - $this->mergeConfigFrom(__DIR__.'/../config/query-updater.php', 'query-updater'); |
|
| 28 | + $this->mergeConfigFrom(__DIR__ . '/../config/query-updater.php', 'query-updater'); |
|
| 29 | 29 | } |
| 30 | 30 | } |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | return []; |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | - public static function for(Model $model, $request = null): self |
|
| 33 | + public static function for (Model $model, $request = null): self |
|
| 34 | 34 | { |
| 35 | 35 | return new static($model, $request ?? request()); |
| 36 | 36 | } |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | { |
| 40 | 40 | $fields = collect($fields); |
| 41 | 41 | |
| 42 | - $fields->each(function ($field) { |
|
| 42 | + $fields->each(function($field) { |
|
| 43 | 43 | if ($this->fieldExists($field)) { |
| 44 | 44 | $this->model->{$field} = $this->data[$field]; |
| 45 | 45 | } |