@@ -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 );
@@ -140,7 +140,7 @@ protected function whereNotNull(Builder $query, $where)
140
140
if ($ this ->isJsonSelector ($ columnValue )) {
141
141
[$ field , $ path ] = $ this ->wrapJsonFieldAndPath ($ where ['column ' ]);
142
142
143
- return '(JSON_EXTRACT_JSON( ' . $ field . $ path . ') IS NOT NULL AND JSON_GET_TYPE(JSON_EXTRACT_JSON( ' . $ field . $ path . ')) != \'NULL \') ' ;
143
+ return '(JSON_EXTRACT_JSON( ' . $ field. $ path. ') IS NOT NULL AND JSON_GET_TYPE(JSON_EXTRACT_JSON( ' . $ field. $ path. ')) != \'NULL \') ' ;
144
144
}
145
145
146
146
return parent ::whereNotNull ($ query , $ where );
@@ -192,7 +192,7 @@ protected function wrapJsonFieldAndPath($column)
192
192
return "' $ part' " ;
193
193
}, $ parts );
194
194
195
- $ path = count ($ parts ) ? ', ' . implode (', ' , $ parts ) : '' ;
195
+ $ path = count ($ parts ) ? ', ' . implode (', ' , $ parts ) : '' ;
196
196
197
197
return [$ field , $ path ];
198
198
}
@@ -205,7 +205,7 @@ protected function wrapJsonFieldAndPath($column)
205
205
*/
206
206
protected function wrapUnion ($ sql )
207
207
{
208
- return 'SELECT * FROM ( ' . $ sql . ') ' ;
208
+ return 'SELECT * FROM ( ' . $ sql. ') ' ;
209
209
}
210
210
211
211
/**
@@ -233,7 +233,7 @@ protected function compileUnion(array $union)
233
233
{
234
234
$ conjunction = $ union ['all ' ] ? ' union all ' : ' union ' ;
235
235
236
- return $ conjunction . '( ' . $ union ['query ' ]->toSql () . ') ' ;
236
+ return $ conjunction. '( ' . $ union ['query ' ]->toSql (). ') ' ;
237
237
}
238
238
239
239
/**
@@ -252,18 +252,18 @@ public function compileSelect(Builder $query)
252
252
}
253
253
254
254
if (! empty ($ query ->unionOrders ) || isset ($ query ->unionLimit ) || isset ($ query ->unionOffset )) {
255
- $ sql = 'SELECT * FROM ( ' . $ sql . ') ' ;
255
+ $ sql = 'SELECT * FROM ( ' . $ sql. ') ' ;
256
256
257
257
if (! empty ($ query ->unionOrders )) {
258
- $ sql .= ' ' . $ this ->compileOrders ($ query , $ query ->unionOrders );
258
+ $ sql .= ' ' . $ this ->compileOrders ($ query , $ query ->unionOrders );
259
259
}
260
260
261
261
if (isset ($ query ->unionLimit )) {
262
- $ sql .= ' ' . $ this ->compileLimit ($ query , $ query ->unionLimit );
262
+ $ sql .= ' ' . $ this ->compileLimit ($ query , $ query ->unionLimit );
263
263
}
264
264
265
265
if (isset ($ query ->unionOffset )) {
266
- $ sql .= ' ' . $ this ->compileUnionOffset ($ query , $ query ->unionOffset );
266
+ $ sql .= ' ' . $ this ->compileUnionOffset ($ query , $ query ->unionOffset );
267
267
}
268
268
}
269
269
@@ -297,10 +297,10 @@ private function compileOffsetWithLimit($offset, $limit): string
297
297
// Add a huge LIMIT clause
298
298
if (! isset ($ limit )) {
299
299
// 9223372036854775807 - max 64-bit integer
300
- return ' LIMIT 9223372036854775807 OFFSET ' . (int ) $ offset ;
300
+ return ' LIMIT 9223372036854775807 OFFSET ' . (int ) $ offset ;
301
301
}
302
302
303
- return ' OFFSET ' . (int ) $ offset ;
303
+ return ' OFFSET ' . (int ) $ offset ;
304
304
}
305
305
306
306
/**
0 commit comments