Passed
Pull Request — master (#233)
by Anton
05:22 queued 02:05
created
src/Support/Database/AddForeignColumnStub.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
 
59 59
     private function getStubsPath(): string
60 60
     {
61
-        return __DIR__ . '/Stubs';
61
+        return __DIR__.'/Stubs';
62 62
     }
63 63
 
64 64
     /**
Please login to merge, or discard this patch.
src/LoveServiceProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -95,11 +95,11 @@  discard block
 block discarded – undo
95 95
     {
96 96
         if ($this->app->runningInConsole()) {
97 97
             $this->publishes([
98
-                __DIR__ . '/../config/love.php' => config_path('love.php'),
98
+                __DIR__.'/../config/love.php' => config_path('love.php'),
99 99
             ], 'love-config');
100 100
 
101 101
             $this->publishes([
102
-                __DIR__ . '/../database/migrations' => database_path('migrations'),
102
+                __DIR__.'/../database/migrations' => database_path('migrations'),
103 103
             ], 'love-migrations');
104 104
         }
105 105
     }
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
     private function registerMigrations(): void
111 111
     {
112 112
         if ($this->app->runningInConsole() && $this->shouldLoadDefaultMigrations()) {
113
-            $this->loadMigrationsFrom(__DIR__ . '/../database/migrations');
113
+            $this->loadMigrationsFrom(__DIR__.'/../database/migrations');
114 114
         }
115 115
     }
116 116
 
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
     private function configure(): void
121 121
     {
122 122
         if (!$this->app->configurationIsCached()) {
123
-            $this->mergeConfigFrom(__DIR__ . '/../config/love.php', 'love');
123
+            $this->mergeConfigFrom(__DIR__.'/../config/love.php', 'love');
124 124
         }
125 125
     }
126 126
 }
Please login to merge, or discard this patch.
src/Reactable/Models/Traits/Reactable.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
         ?string $alias = null,
118 118
     ): Builder {
119 119
         $reactionType = ReactionType::fromName($reactionTypeName);
120
-        $alias = $alias === null ? 'reaction_' . Str::snake($reactionType->getName()) : $alias;
120
+        $alias = $alias === null ? 'reaction_'.Str::snake($reactionType->getName()) : $alias;
121 121
 
122 122
         $select = $query->getQuery()->columns ?? ["{$this->getTable()}.*"];
123 123
         $select[] = $query->raw("COALESCE({$alias}.count, 0) as {$alias}_count");
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
 
126 126
         return $query
127 127
             ->leftJoin(
128
-                (new ReactionCounter())->getTable() . ' as ' . $alias,
128
+                (new ReactionCounter())->getTable().' as '.$alias,
129 129
                 function (JoinClause $join) use ($reactionType, $alias) {
130 130
                     $join->on("{$alias}.reactant_id", '=', "{$this->getTable()}.love_reactant_id");
131 131
                     $join->where("{$alias}.reaction_type_id", $reactionType->getId());
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
 
146 146
         return $query
147 147
             ->leftJoin(
148
-                (new ReactionTotal())->getTable() . ' as ' . $alias,
148
+                (new ReactionTotal())->getTable().' as '.$alias,
149 149
                 "{$alias}.reactant_id",
150 150
                 '=',
151 151
                 "{$this->getTable()}.love_reactant_id"
Please login to merge, or discard this patch.