@@ -128,7 +128,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | |