Passed
Push — master ( 0c0036...1df2ed )
by Anton
05:25 queued 02:08
created
src/Reacterable/ReacterableEloquentBuilderTrait.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Reactable/ReactableEloquentBuilderTrait.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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",
Please login to merge, or discard this patch.