Passed
Push — main ( 7849fa...76c230 )
by Jonas
06:25 queued 02:53
created
src/Eloquent/Builder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,9 +46,9 @@
 block discarded – undo
46 46
      */
47 47
     public function eagerLoadRelations(array $models)
48 48
     {
49
-        collect($models)->groupBy(function ($model) {
49
+        collect($models)->groupBy(function($model) {
50 50
             return get_class($model);
51
-        })->each(function ($models) {
51
+        })->each(function($models) {
52 52
             $model = $models[0];
53 53
 
54 54
             $relations = array_merge(
Please login to merge, or discard this patch.
src/DatabaseServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
      */
15 15
     public function register()
16 16
     {
17
-        $this->app->bind(Schema::class, function ($app) {
17
+        $this->app->bind(Schema::class, function($app) {
18 18
             return Schema::getSchemaBuilder(
19 19
                 $app['db']->connection()
20 20
             );
Please login to merge, or discard this patch.
src/Schema/Builders/CreatesMergeViews.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -224,22 +224,22 @@
 block discarded – undo
224 224
     {
225 225
         if ($relation instanceof BelongsTo) {
226 226
             $relation->getQuery()->distinct()
227
-                          ->join(
228
-                              $relation->getParent()->getTable(),
229
-                              $relation->getQualifiedForeignKeyName(),
230
-                              '=',
231
-                              $relation->getQualifiedOwnerKeyName()
232
-                          );
227
+                            ->join(
228
+                                $relation->getParent()->getTable(),
229
+                                $relation->getQualifiedForeignKeyName(),
230
+                                '=',
231
+                                $relation->getQualifiedOwnerKeyName()
232
+                            );
233 233
         }
234 234
 
235 235
         if ($this->isHasManyDeepRelationWithLeadingBelongsTo($relation)) {
236 236
             $relation->getQuery()
237
-                     ->join(
238
-                         $relation->getFarParent()->getTable(),
239
-                         $relation->getQualifiedLocalKeyName(),
240
-                         '=',
241
-                         $relation->getQualifiedFirstKeyName()
242
-                     );
237
+                        ->join(
238
+                            $relation->getFarParent()->getTable(),
239
+                            $relation->getQualifiedLocalKeyName(),
240
+                            '=',
241
+                            $relation->getQualifiedFirstKeyName()
242
+                        );
243 243
         }
244 244
     }
245 245
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
             $foreignKey = $this->getOriginalForeignKey($relation);
82 82
 
83 83
             $relation->getQuery()->getQuery()->wheres = collect($relation->getQuery()->getQuery()->wheres)
84
-                ->reject(function ($where) use ($foreignKey) {
84
+                ->reject(function($where) use ($foreignKey) {
85 85
                     return $where['column'] === $foreignKey;
86 86
                 })->values()->all();
87 87
         }
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
                         'table' => $relation->getTable(),
228 228
                     ];
229 229
                 }
230
-            } elseif($relation instanceof HasManyDeep) {
230
+            } elseif ($relation instanceof HasManyDeep) {
231 231
                 $intermediateTables = $relation->getIntermediateTables();
232 232
 
233 233
                 foreach ($intermediateTables as $accessor => $table) {
Please login to merge, or discard this patch.
src/IdeHelper/MergedRelationsHook.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
     protected function addRelationship(ModelsCommand $command, ReflectionMethod $method, Relation $relationship): void
47 47
     {
48
-        $type = '\\' . Collection::class . '|\\' . $relationship->getRelated()::class . '[]';
48
+        $type = '\\'.Collection::class.'|\\'.$relationship->getRelated()::class.'[]';
49 49
 
50 50
         $command->setProperty(
51 51
             $method->getName(),
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
         );
56 56
 
57 57
         $command->setProperty(
58
-            Str::snake($method->getName()) . '_count',
58
+            Str::snake($method->getName()).'_count',
59 59
             'int',
60 60
             true,
61 61
             false,
Please login to merge, or discard this patch.