@@ -26,7 +26,7 @@ public function compileOptions(array $options): string
26
26
if (! empty ($ optionString )) {
27
27
$ optionString .= ', ' ;
28
28
}
29
- $ optionString .= $ key . '= ' . $ value ;
29
+ $ optionString .= $ key. '= ' . $ value ;
30
30
}
31
31
32
32
return "OPTION ( {$ optionString }) " ;
@@ -128,7 +128,7 @@ protected function whereNull(Builder $query, $where)
128
128
if ($ this ->isJsonSelector ($ columnValue )) {
129
129
[$ field , $ path ] = $ this ->wrapJsonFieldAndPath ($ where ['column ' ]);
130
130
131
- return '(JSON_EXTRACT_JSON( ' . $ field . $ path . ') IS NULL OR JSON_GET_TYPE(JSON_EXTRACT_JSON( ' . $ field . $ path . ')) = \'NULL \') ' ;
131
+ return '(JSON_EXTRACT_JSON( ' . $ field. $ path. ') IS NULL OR JSON_GET_TYPE(JSON_EXTRACT_JSON( ' . $ field. $ path. ')) = \'NULL \') ' ;
132
132
}
133
133
134
134
return parent ::whereNull ($ query , $ where );
@@ -155,7 +155,7 @@ protected function whereNotNull(Builder $query, $where)
155
155
if ($ this ->isJsonSelector ($ columnValue )) {
156
156
[$ field , $ path ] = $ this ->wrapJsonFieldAndPath ($ where ['column ' ]);
157
157
158
- return '(JSON_EXTRACT_JSON( ' . $ field . $ path . ') IS NOT NULL AND JSON_GET_TYPE(JSON_EXTRACT_JSON( ' . $ field . $ path . ')) != \'NULL \') ' ;
158
+ return '(JSON_EXTRACT_JSON( ' . $ field. $ path. ') IS NOT NULL AND JSON_GET_TYPE(JSON_EXTRACT_JSON( ' . $ field. $ path. ')) != \'NULL \') ' ;
159
159
}
160
160
161
161
return parent ::whereNotNull ($ query , $ where );
@@ -207,7 +207,7 @@ protected function wrapJsonFieldAndPath($column)
207
207
return "' $ part' " ;
208
208
}, $ parts );
209
209
210
- $ path = count ($ parts ) ? ', ' . implode (', ' , $ parts ) : '' ;
210
+ $ path = count ($ parts ) ? ', ' . implode (', ' , $ parts ) : '' ;
211
211
212
212
return [$ field , $ path ];
213
213
}
@@ -220,7 +220,7 @@ protected function wrapJsonFieldAndPath($column)
220
220
*/
221
221
protected function wrapUnion ($ sql )
222
222
{
223
- return 'SELECT * FROM ( ' . $ sql . ') ' ;
223
+ return 'SELECT * FROM ( ' . $ sql. ') ' ;
224
224
}
225
225
226
226
/**
@@ -248,7 +248,7 @@ protected function compileUnion(array $union)
248
248
{
249
249
$ conjunction = $ union ['all ' ] ? ' union all ' : ' union ' ;
250
250
251
- return $ conjunction . '( ' . $ union ['query ' ]->toSql () . ') ' ;
251
+ return $ conjunction. '( ' . $ union ['query ' ]->toSql (). ') ' ;
252
252
}
253
253
254
254
/**
@@ -267,18 +267,18 @@ public function compileSelect(Builder $query)
267
267
}
268
268
269
269
if (! empty ($ query ->unionOrders ) || isset ($ query ->unionLimit ) || isset ($ query ->unionOffset )) {
270
- $ sql = 'SELECT * FROM ( ' . $ sql . ') ' ;
270
+ $ sql = 'SELECT * FROM ( ' . $ sql. ') ' ;
271
271
272
272
if (! empty ($ query ->unionOrders )) {
273
- $ sql .= ' ' . $ this ->compileOrders ($ query , $ query ->unionOrders );
273
+ $ sql .= ' ' . $ this ->compileOrders ($ query , $ query ->unionOrders );
274
274
}
275
275
276
276
if (isset ($ query ->unionLimit )) {
277
- $ sql .= ' ' . $ this ->compileLimit ($ query , $ query ->unionLimit );
277
+ $ sql .= ' ' . $ this ->compileLimit ($ query , $ query ->unionLimit );
278
278
}
279
279
280
280
if (isset ($ query ->unionOffset )) {
281
- $ sql .= ' ' . $ this ->compileUnionOffset ($ query , $ query ->unionOffset );
281
+ $ sql .= ' ' . $ this ->compileUnionOffset ($ query , $ query ->unionOffset );
282
282
}
283
283
}
284
284
@@ -312,10 +312,10 @@ private function compileOffsetWithLimit($offset, $limit): string
312
312
// Add a huge LIMIT clause
313
313
if (! isset ($ limit )) {
314
314
// 9223372036854775807 - max 64-bit integer
315
- return ' LIMIT 9223372036854775807 OFFSET ' . (int ) $ offset ;
315
+ return ' LIMIT 9223372036854775807 OFFSET ' . (int ) $ offset ;
316
316
}
317
317
318
- return ' OFFSET ' . (int ) $ offset ;
318
+ return ' OFFSET ' . (int ) $ offset ;
319
319
}
320
320
321
321
/**
0 commit comments