@@ -104,7 +104,7 @@ |
||
104 | 104 | $select[] = DB::raw("COALESCE({$alias}.weight, 0) as {$alias}_weight"); |
105 | 105 | |
106 | 106 | return $query |
107 | - ->leftJoin((new ReactionCounter())->getTable() . ' as '. $alias, function (JoinClause $join) use ($reactionType, $alias) { |
|
107 | + ->leftJoin((new ReactionCounter())->getTable() . ' as ' . $alias, function (JoinClause $join) use ($reactionType, $alias) { |
|
108 | 108 | $join->on("{$alias}.reactant_id", '=', "{$this->getTable()}.love_reactant_id"); |
109 | 109 | $join->where("{$alias}.reaction_type_id", $reactionType->getId()); |
110 | 110 | }) |
@@ -115,11 +115,11 @@ discard block |
||
115 | 115 | { |
116 | 116 | if ($this->app->runningInConsole()) { |
117 | 117 | $this->publishes([ |
118 | - __DIR__.'/../config/love.php' => config_path('love.php'), |
|
118 | + __DIR__ . '/../config/love.php' => config_path('love.php'), |
|
119 | 119 | ], 'love-config'); |
120 | 120 | |
121 | 121 | $this->publishes([ |
122 | - __DIR__.'/../database/migrations' => database_path('migrations'), |
|
122 | + __DIR__ . '/../database/migrations' => database_path('migrations'), |
|
123 | 123 | ], 'love-migrations'); |
124 | 124 | } |
125 | 125 | } |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | private function registerMigrations(): void |
133 | 133 | { |
134 | 134 | if ($this->app->runningInConsole() && $this->shouldLoadDefaultMigrations()) { |
135 | - $this->loadMigrationsFrom(__DIR__.'/../database/migrations'); |
|
135 | + $this->loadMigrationsFrom(__DIR__ . '/../database/migrations'); |
|
136 | 136 | } |
137 | 137 | } |
138 | 138 | |
@@ -159,8 +159,8 @@ discard block |
||
159 | 159 | */ |
160 | 160 | private function configure(): void |
161 | 161 | { |
162 | - if ( ! $this->app->configurationIsCached()) { |
|
163 | - $this->mergeConfigFrom(__DIR__.'/../config/love.php', 'love'); |
|
162 | + if (!$this->app->configurationIsCached()) { |
|
163 | + $this->mergeConfigFrom(__DIR__ . '/../config/love.php', 'love'); |
|
164 | 164 | } |
165 | 165 | } |
166 | 166 | } |