Passed
Push — master ( bde10d...68515f )
by Iman
03:15
created
src/TempTagServiceProvider.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -36,11 +36,11 @@  discard block
 block discarded – undo
36 36
     {
37 37
         if ($this->app->runningInConsole()) {
38 38
             $this->publishes([
39
-                __DIR__.'/../config/temp_tag.php' => config_path('tag.php'),
39
+                __DIR__ . '/../config/temp_tag.php' => config_path('tag.php'),
40 40
             ], 'tag-config');
41 41
 
42 42
             $this->publishes([
43
-                __DIR__.'/../database/migrations' => database_path('migrations'),
43
+                __DIR__ . '/../database/migrations' => database_path('migrations'),
44 44
             ], 'migrations');
45 45
         }
46 46
 
@@ -50,14 +50,14 @@  discard block
 block discarded – undo
50 50
     private function registerMigrations()
51 51
     {
52 52
         if ($this->app->runningInConsole() && $this->shouldLoadDefaultMigrations()) {
53
-            $this->loadMigrationsFrom(__DIR__.'/../database/migrations');
53
+            $this->loadMigrationsFrom(__DIR__ . '/../database/migrations');
54 54
         }
55 55
     }
56 56
 
57 57
     private function configure()
58 58
     {
59
-        if (! $this->app->configurationIsCached()) {
60
-            $this->mergeConfigFrom(__DIR__.'/../config/temp_tag.php', 'tag');
59
+        if (!$this->app->configurationIsCached()) {
60
+            $this->mergeConfigFrom(__DIR__ . '/../config/temp_tag.php', 'tag');
61 61
         }
62 62
     }
63 63
 
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
     public static function registerRelationship($q)
70 70
     {
71 71
         $table = $q->getModel()->getTable();
72
-        if (! in_array($table, TempTagServiceProvider::$registeredRelation)) {
72
+        if (!in_array($table, TempTagServiceProvider::$registeredRelation)) {
73 73
             TempTagServiceProvider::$registeredRelation[] = $table;
74 74
             Relation::morphMap([$table => get_class($q->getModel())]);
75 75
         }
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 
78 78
     private function whereHasClosure($relation, $method)
79 79
     {
80
-        return function ($title, $payload = []) use ($relation, $method) {
80
+        return function($title, $payload = []) use ($relation, $method) {
81 81
             TempTagServiceProvider::registerRelationship($this);
82 82
 
83 83
             return $this->$method($relation, TempTagServiceProvider::getClosure($title, $payload));
@@ -86,10 +86,10 @@  discard block
 block discarded – undo
86 86
 
87 87
     public static function getClosure($title, $payload)
88 88
     {
89
-        return function ($q) use ($title, $payload) {
89
+        return function($q) use ($title, $payload) {
90 90
             $q->whereIn('title', (array) $title);
91 91
             foreach ($payload as $key => $value) {
92
-                $q->where('payload->'.$key, $value);
92
+                $q->where('payload->' . $key, $value);
93 93
             }
94 94
         };
95 95
     }
Please login to merge, or discard this patch.