Passed
Push — master ( e95783...ae0914 )
by Jonas
13:56
created
Relations/Graph/Traits/Concatenation/IsConcatenableAncestorsRelation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
         );
20 20
 
21 21
         $childKey = $this->related->qualifyColumn(
22
-            "pivot_" . $this->related->getChildKeyName()
22
+            "pivot_".$this->related->getChildKeyName()
23 23
         );
24 24
 
25 25
         return ["$path as {$alias}", "$childKey as {$alias}_pivot_id"];
Please login to merge, or discard this patch.
src/Query/Grammars/FirebirdGrammar.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 
12 12
     public function compileInitialPath($column, $alias)
13 13
     {
14
-        return 'cast(' . $this->wrap($column) . ' as varchar(8191)) as ' . $this->wrap($alias);
14
+        return 'cast('.$this->wrap($column).' as varchar(8191)) as '.$this->wrap($alias);
15 15
     }
16 16
 
17 17
     public function compileRecursivePath($column, $alias, bool $reverse = false)
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     public function selectPathList(Builder $query, $expression, $column, $pathSeparator, $listSeparator)
32 32
     {
33 33
         return $query->selectRaw(
34
-            'list(' . $this->wrap($column) . ", '$listSeparator')"
34
+            'list('.$this->wrap($column).", '$listSeparator')"
35 35
         )->from($expression);
36 36
     }
37 37
 
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
     public function compileCycleDetectionInitialSelect(string $column): string
57 57
     {
58
-        return 'false as ' . $this->wrap($column);
58
+        return 'false as '.$this->wrap($column);
59 59
     }
60 60
 
61 61
     public function compileCycleDetectionRecursiveSelect(string $sql, string $column): string
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 
66 66
     public function compileCycleDetectionStopConstraint(string $column): string
67 67
     {
68
-        return 'not ' . $this->wrap($column);
68
+        return 'not '.$this->wrap($column);
69 69
     }
70 70
 
71 71
     public function supportsUnionInRecursiveExpression(): bool
Please login to merge, or discard this patch.
src/Eloquent/Traits/HasGraphRelationshipScopes.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 
129 129
         $query = $this->newModelQuery()
130 130
             ->select("$table.*")
131
-            ->selectRaw($initialDepth . ' as ' . $depth)
131
+            ->selectRaw($initialDepth.' as '.$depth)
132 132
             ->selectRaw($initialPath)
133 133
             ->from($from);
134 134
 
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
 
195 195
                 $null = $grammar->compilePivotColumnNullValue($columnDefinition['type_name'], $columnDefinition['type']);
196 196
 
197
-                $query->selectRaw("$null as " . $grammar->wrap("pivot_$column"));
197
+                $query->selectRaw("$null as ".$grammar->wrap("pivot_$column"));
198 198
             }
199 199
         } else {
200 200
             foreach ($columns as $column) {
@@ -273,16 +273,16 @@  discard block
 block discarded – undo
273 273
 
274 274
         $joinColumns = [
275 275
             'asc' => [
276
-                $name . '.' . $this->getLocalKeyName(),
276
+                $name.'.'.$this->getLocalKeyName(),
277 277
                 $this->getQualifiedChildKeyName(),
278 278
             ],
279 279
             'desc' => [
280
-                $name . '.' . $this->getLocalKeyName(),
280
+                $name.'.'.$this->getLocalKeyName(),
281 281
                 $this->getQualifiedParentKeyName(),
282 282
             ],
283 283
         ];
284 284
 
285
-        $recursiveDepth = $depth . ' ' . ($direction === 'asc' ? '-' : '+') . ' 1';
285
+        $recursiveDepth = $depth.' '.($direction === 'asc' ? '-' : '+').' 1';
286 286
 
287 287
         $recursivePath = $grammar->compileRecursivePath(
288 288
             $this->getQualifiedLocalKeyName(),
@@ -292,8 +292,8 @@  discard block
 block discarded – undo
292 292
         $recursivePathBindings = $grammar->getRecursivePathBindings($this->getPathSeparator());
293 293
 
294 294
         $query = $this->newModelQuery()
295
-            ->select($table . '.*')
296
-            ->selectRaw($recursiveDepth . ' as ' . $depth)
295
+            ->select($table.'.*')
296
+            ->selectRaw($recursiveDepth.' as '.$depth)
297 297
             ->selectRaw($recursivePath, $recursivePathBindings)
298 298
             ->from($from);
299 299
 
Please login to merge, or discard this patch.
src/Eloquent/Graph/Collection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,8 +27,8 @@
 block discarded – undo
27 27
         $model = $this->first();
28 28
 
29 29
         $parentKeyName = $model->relationLoaded('pivot')
30
-            ? 'pivot.' . $model->getParentKeyName()
31
-            : 'pivot_' . $model->getParentKeyName();
30
+            ? 'pivot.'.$model->getParentKeyName()
31
+            : 'pivot_'.$model->getParentKeyName();
32 32
 
33 33
         $localKeyName = $model->getLocalKeyName();
34 34
 
Please login to merge, or discard this patch.
src/Eloquent/Relations/Traits/Concatenation/IsConcatenableRelation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
     public function appendToDeepRelationship(array $through, array $foreignKeys, array $localKeys, int $position): array
22 22
     {
23 23
         if ($position === 0) {
24
-            $foreignKeys[] = function (Builder $query, ?Builder $parentQuery = null) {
24
+            $foreignKeys[] = function(Builder $query, ?Builder $parentQuery = null) {
25 25
                 if ($parentQuery) {
26 26
                     $this->getRelationExistenceQuery($this->query, $parentQuery);
27 27
                 }
Please login to merge, or discard this patch.
Eloquent/Relations/Graph/Traits/Concatenation/IsConcatenableRelation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     public function appendToDeepRelationship(array $through, array $foreignKeys, array $localKeys, int $position): array
23 23
     {
24 24
         if ($position === 0) {
25
-            $foreignKeys[] = function (Builder $query, ?Builder $parentQuery = null) {
25
+            $foreignKeys[] = function(Builder $query, ?Builder $parentQuery = null) {
26 26
                 if ($parentQuery) {
27 27
                     $this->getRelationExistenceQuery($this->query, $parentQuery);
28 28
                 }
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
         $pathSeparator = $this->related->getPathSeparator();
177 177
 
178 178
         if ($this->andSelf) {
179
-            return $results->mapToDictionary(function (Model $result) use ($pathSeparator) {
179
+            return $results->mapToDictionary(function(Model $result) use ($pathSeparator) {
180 180
                 return [strtok($result->laravel_through_key, $pathSeparator) => $result];
181 181
             })->all();
182 182
         }
Please login to merge, or discard this patch.