Passed
Push — main ( 8332f9...28cbfc )
by Jonas
03:50 queued 47s
created
src/Relations/BelongsToThrough.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
                 /** @phpstan-ignore method.notFound */
125 125
                 $column = $model->getQualifiedDeletedAtColumn();
126 126
 
127
-                $query->withGlobalScope(__CLASS__ . ":{$column}", function (Builder $query) use ($column) {
127
+                $query->withGlobalScope(__CLASS__.":{$column}", function(Builder $query) use ($column) {
128 128
                     $query->whereNull($column);
129 129
                 });
130 130
             }
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
             return $this->foreignKeyLookup[$table];
146 146
         }
147 147
 
148
-        return Str::singular($table) . '_id';
148
+        return Str::singular($table).'_id';
149 149
     }
150 150
 
151 151
     /**
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
     public function first($columns = ['*'])
249 249
     {
250 250
         if ($columns === ['*']) {
251
-            $columns = [$this->related->getTable() . '.*'];
251
+            $columns = [$this->related->getTable().'.*'];
252 252
         }
253 253
 
254 254
         return $this->query->first($columns);
@@ -260,10 +260,10 @@  discard block
 block discarded – undo
260 260
         $columns = $this->query->getQuery()->columns ? [] : $columns;
261 261
 
262 262
         if ($columns === ['*']) {
263
-            $columns = [$this->related->getTable() . '.*'];
263
+            $columns = [$this->related->getTable().'.*'];
264 264
         }
265 265
 
266
-        $columns[] = $this->getQualifiedFirstLocalKeyName() . ' as ' . static::THROUGH_KEY;
266
+        $columns[] = $this->getQualifiedFirstLocalKeyName().' as '.static::THROUGH_KEY;
267 267
 
268 268
         $this->query->addSelect($columns);
269 269
 
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
             );
284 284
         }
285 285
 
286
-        $foreignKey = $from . '.' . $this->getFirstForeignKeyName();
286
+        $foreignKey = $from.'.'.$this->getFirstForeignKeyName();
287 287
 
288 288
         /** @var \Illuminate\Database\Eloquent\Builder<TRelatedModel> $query */
289 289
         $query = $query->select($columns)->whereColumn(
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
 
317 317
         /** @var string[] $columns */
318 318
         foreach ($columns as $column) {
319
-            $this->query->withoutGlobalScope(__CLASS__ . ":$column");
319
+            $this->query->withoutGlobalScope(__CLASS__.":$column");
320 320
         }
321 321
 
322 322
         return $this;
@@ -345,7 +345,7 @@  discard block
 block discarded – undo
345 345
             throw new RuntimeException('No "through" parent models were specified.');
346 346
         }
347 347
 
348
-        return $this->prefix . $this->getForeignKeyName($firstThroughParent);
348
+        return $this->prefix.$this->getForeignKeyName($firstThroughParent);
349 349
     }
350 350
 
351 351
     /**
Please login to merge, or discard this patch.