@@ -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 | }) |
@@ -306,7 +306,7 @@ |
||
306 | 306 | ->from('love_likes') |
307 | 307 | ->groupBy('type_id') |
308 | 308 | ->get() |
309 | - ->pluck('type_id')->map(function($type) { |
|
309 | + ->pluck('type_id')->map(function ($type) { |
|
310 | 310 | return ucfirst(strtolower($type)); |
311 | 311 | }); |
312 | 312 | return $types; |