Passed
Push — main ( 95549e...45c770 )
by Jonas
03:30
created
src/Traits/BelongsToThrough.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
         $instance = new $segments[0]();
89 89
 
90 90
         if (isset($segments[1])) {
91
-            $instance->setTable($instance->getTable() . ' as ' . $segments[1]);
91
+            $instance->setTable($instance->getTable().' as '.$segments[1]);
92 92
         }
93 93
 
94 94
         return $instance;
Please login to merge, or discard this patch.
src/Relations/BelongsToThrough.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
             if ($this->hasSoftDeletes($model)) {
111 111
                 $column = $model->getQualifiedDeletedAtColumn();
112 112
 
113
-                $query->withGlobalScope(__CLASS__ . ":{$column}", function (Builder $query) use ($column) {
113
+                $query->withGlobalScope(__CLASS__.":{$column}", function(Builder $query) use ($column) {
114 114
                     $query->whereNull($column);
115 115
                 });
116 116
             }
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
             return $this->foreignKeyLookup[$table];
132 132
         }
133 133
 
134
-        return Str::singular($table) . '_id';
134
+        return Str::singular($table).'_id';
135 135
     }
136 136
 
137 137
     /**
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
     public function first($columns = ['*'])
252 252
     {
253 253
         if ($columns === ['*']) {
254
-            $columns = [$this->related->getTable() . '.*'];
254
+            $columns = [$this->related->getTable().'.*'];
255 255
         }
256 256
 
257 257
         return $this->query->first($columns);
@@ -268,10 +268,10 @@  discard block
 block discarded – undo
268 268
         $columns = $this->query->getQuery()->columns ? [] : $columns;
269 269
 
270 270
         if ($columns === ['*']) {
271
-            $columns = [$this->related->getTable() . '.*'];
271
+            $columns = [$this->related->getTable().'.*'];
272 272
         }
273 273
 
274
-        $columns[] = $this->getQualifiedFirstLocalKeyName() . ' as ' . static::THROUGH_KEY;
274
+        $columns[] = $this->getQualifiedFirstLocalKeyName().' as '.static::THROUGH_KEY;
275 275
 
276 276
         $this->query->addSelect($columns);
277 277
 
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
     {
291 291
         $this->performJoins($query);
292 292
 
293
-        $foreignKey = $parent->getQuery()->from . '.' . $this->getFirstForeignKeyName();
293
+        $foreignKey = $parent->getQuery()->from.'.'.$this->getFirstForeignKeyName();
294 294
 
295 295
         return $query->select($columns)->whereColumn(
296 296
             $this->getQualifiedFirstLocalKeyName(),
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
         }
319 319
 
320 320
         foreach ($columns as $column) {
321
-            $this->query->withoutGlobalScope(__CLASS__ . ":$column");
321
+            $this->query->withoutGlobalScope(__CLASS__.":$column");
322 322
         }
323 323
 
324 324
         return $this;
@@ -341,7 +341,7 @@  discard block
 block discarded – undo
341 341
      */
342 342
     public function getFirstForeignKeyName()
343 343
     {
344
-        return $this->prefix . $this->getForeignKeyName(end($this->throughParents));
344
+        return $this->prefix.$this->getForeignKeyName(end($this->throughParents));
345 345
     }
346 346
 
347 347
     /**
Please login to merge, or discard this patch.
src/IdeHelper/BelongsToThroughRelationsHook.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
 
44 44
     protected function addRelationship(ModelsCommand $command, ReflectionMethod $method, Relation $relationship): void
45 45
     {
46
-        $type = '\\' . $relationship->getRelated()::class;
46
+        $type = '\\'.$relationship->getRelated()::class;
47 47
 
48 48
         $command->setProperty(
49 49
             $method->getName(),
Please login to merge, or discard this patch.