@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | function (Builder $reactionsQuery) use ( |
34 | 34 | $reactable, |
35 | 35 | $reactionTypeName, |
36 | - ): void { |
|
36 | + ) : void { |
|
37 | 37 | $reactionsQuery->where( |
38 | 38 | 'reactant_id', |
39 | 39 | $reactable->getLoveReactant()->getId(), |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | function (Builder $reactionsQuery) use ( |
59 | 59 | $reactable, |
60 | 60 | $reactionTypeName, |
61 | - ): void { |
|
61 | + ) : void { |
|
62 | 62 | $reactionsQuery->where( |
63 | 63 | 'reactant_id', |
64 | 64 | $reactable->getLoveReactant()->getId(), |
@@ -87,14 +87,14 @@ discard block |
||
87 | 87 | $reactedAtFrom, |
88 | 88 | $reactedAtTo, |
89 | 89 | $reactionTypeName, |
90 | - ): void { |
|
90 | + ) : void { |
|
91 | 91 | $reactionsQuery->where( |
92 | 92 | 'reactant_id', |
93 | 93 | $reactable->getLoveReactant()->getId(), |
94 | 94 | ); |
95 | 95 | |
96 | 96 | $reactionsQuery->whereBetween( |
97 | - (new Reaction())->getTable() . '.created_at', |
|
97 | + (new Reaction())->getTable().'.created_at', |
|
98 | 98 | [$reactedAtFrom, $reactedAtTo], |
99 | 99 | ); |
100 | 100 |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | function (Builder $reactionsQuery) use ( |
36 | 36 | $reacterable, |
37 | 37 | $reactionTypeName, |
38 | - ): void { |
|
38 | + ) : void { |
|
39 | 39 | $reactionsQuery->where( |
40 | 40 | 'reacter_id', |
41 | 41 | $reacterable->getLoveReacter()->getId(), |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | function (Builder $reactionsQuery) use ( |
61 | 61 | $reacterable, |
62 | 62 | $reactionTypeName, |
63 | - ): void { |
|
63 | + ) : void { |
|
64 | 64 | $reactionsQuery->where( |
65 | 65 | 'reacter_id', |
66 | 66 | $reacterable->getLoveReacter()->getId(), |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | ): Builder { |
83 | 83 | $reactionType = ReactionType::fromName($reactionTypeName); |
84 | 84 | $alias = $alias === null |
85 | - ? 'reaction_' . Str::snake($reactionType->getName()) |
|
85 | + ? 'reaction_'.Str::snake($reactionType->getName()) |
|
86 | 86 | : $alias; |
87 | 87 | |
88 | 88 | $select = $this->getQuery()->columns ?? ["{$this->getModel()->getTable()}.*"]; |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | |
92 | 92 | return $this |
93 | 93 | ->leftJoin( |
94 | - (new ReactionCounter())->getTable() . ' as ' . $alias, |
|
94 | + (new ReactionCounter())->getTable().' as '.$alias, |
|
95 | 95 | function (JoinClause $join) use ( |
96 | 96 | $reactionType, |
97 | 97 | $alias, |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | |
124 | 124 | return $this |
125 | 125 | ->leftJoin( |
126 | - (new ReactionTotal())->getTable() . ' as ' . $alias, |
|
126 | + (new ReactionTotal())->getTable().' as '.$alias, |
|
127 | 127 | "{$alias}.reactant_id", |
128 | 128 | '=', |
129 | 129 | "{$this->getModel()->getTable()}.love_reactant_id", |