Test Setup Failed
Pull Request — master (#2)
by La Teva Web
02:30
created
src/QueryUpdaterServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/QueryUpdater.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             }
Please login to merge, or discard this patch.