@@ -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 | |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | $scale = $query->getConnection()->getDoctrineColumn($pivotTable, $column)->getScale(); |
206 | 206 | $null = $grammar->compilePivotColumnNullValue($type, $precision, $scale); |
207 | 207 | |
208 | - $query->selectRaw("$null as " . $grammar->wrap("pivot_$column")); |
|
208 | + $query->selectRaw("$null as ".$grammar->wrap("pivot_$column")); |
|
209 | 209 | } |
210 | 210 | } else { |
211 | 211 | foreach ($columns as $column) { |
@@ -284,16 +284,16 @@ discard block |
||
284 | 284 | |
285 | 285 | $joinColumns = [ |
286 | 286 | 'asc' => [ |
287 | - $name . '.' . $this->getLocalKeyName(), |
|
287 | + $name.'.'.$this->getLocalKeyName(), |
|
288 | 288 | $this->getQualifiedChildKeyName(), |
289 | 289 | ], |
290 | 290 | 'desc' => [ |
291 | - $name . '.' . $this->getLocalKeyName(), |
|
291 | + $name.'.'.$this->getLocalKeyName(), |
|
292 | 292 | $this->getQualifiedParentKeyName(), |
293 | 293 | ], |
294 | 294 | ]; |
295 | 295 | |
296 | - $recursiveDepth = $depth . ' ' . ($direction === 'asc' ? '-' : '+') . ' 1'; |
|
296 | + $recursiveDepth = $depth.' '.($direction === 'asc' ? '-' : '+').' 1'; |
|
297 | 297 | |
298 | 298 | $recursivePath = $grammar->compileRecursivePath( |
299 | 299 | $this->getQualifiedLocalKeyName(), |
@@ -303,8 +303,8 @@ discard block |
||
303 | 303 | $recursivePathBindings = $grammar->getRecursivePathBindings($this->getPathSeparator()); |
304 | 304 | |
305 | 305 | $query = $this->newModelQuery() |
306 | - ->select($table . '.*') |
|
307 | - ->selectRaw($recursiveDepth . ' as ' . $depth) |
|
306 | + ->select($table.'.*') |
|
307 | + ->selectRaw($recursiveDepth.' as '.$depth) |
|
308 | 308 | ->selectRaw($recursivePath, $recursivePathBindings) |
309 | 309 | ->from($from); |
310 | 310 |
@@ -67,13 +67,13 @@ |
||
67 | 67 | } |
68 | 68 | |
69 | 69 | /** |
70 | - * Compile a pivot column null value. |
|
71 | - * |
|
72 | - * @param string $type |
|
73 | - * @param int $precision |
|
74 | - * @param int $scale |
|
75 | - * @return string |
|
76 | - */ |
|
70 | + * Compile a pivot column null value. |
|
71 | + * |
|
72 | + * @param string $type |
|
73 | + * @param int $precision |
|
74 | + * @param int $scale |
|
75 | + * @return string |
|
76 | + */ |
|
77 | 77 | public function compilePivotColumnNullValue(string $type, int $precision, int $scale): string |
78 | 78 | { |
79 | 79 | return 'null'; |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | */ |
19 | 19 | public function compileInitialPath($column, $alias) |
20 | 20 | { |
21 | - return 'cast(' . $this->wrap($column) . ' as text) as ' . $this->wrap($alias); |
|
21 | + return 'cast('.$this->wrap($column).' as text) as '.$this->wrap($alias); |
|
22 | 22 | } |
23 | 23 | |
24 | 24 | /** |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | public function selectPathList(Builder $query, $expression, $column, $pathSeparator, $listSeparator) |
62 | 62 | { |
63 | 63 | return $query->selectRaw( |
64 | - 'group_concat(' . $this->wrap($column) . ', ?)', |
|
64 | + 'group_concat('.$this->wrap($column).', ?)', |
|
65 | 65 | [$listSeparator] |
66 | 66 | )->from($expression); |
67 | 67 | } |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | */ |
114 | 114 | public function compileCycleDetectionInitialSelect(string $column): string |
115 | 115 | { |
116 | - return 'false as ' . $this->wrap($column); |
|
116 | + return 'false as '.$this->wrap($column); |
|
117 | 117 | } |
118 | 118 | |
119 | 119 | /** |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | */ |
137 | 137 | public function compileCycleDetectionStopConstraint(string $column): string |
138 | 138 | { |
139 | - return 'not ' . $this->wrap($column); |
|
139 | + return 'not '.$this->wrap($column); |
|
140 | 140 | } |
141 | 141 | |
142 | 142 | /** |