Passed
Push — master ( 0c0036...1df2ed )
by Anton
05:25 queued 02:08
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/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.