@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | // see if that component exists. If it does we'll just call the compiler |
168 | 168 | // function for the component which is responsible for making the SQL. |
169 | 169 | |
170 | - if (isset($builder->$component) && ! is_null($builder->$component)) { |
|
170 | + if (isset($builder->$component) && !is_null($builder->$component)) { |
|
171 | 171 | $method = 'compile'.ucfirst($component); |
172 | 172 | |
173 | 173 | $builder = $this->$method($builder, $builder->$component); |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | */ |
227 | 227 | protected function compileWheresToArray($builder) |
228 | 228 | { |
229 | - $result = collect($builder->wheres)->map(function ($where) use ($builder) { |
|
229 | + $result = collect($builder->wheres)->map(function($where) use ($builder) { |
|
230 | 230 | // ArangoDB uses a double '=' for comparison |
231 | 231 | if ($where['operator'] == '=') { |
232 | 232 | $where['operator'] = '=='; |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | $where['operator'] = $this->translateOperator($where['operator']); |
235 | 235 | |
236 | 236 | //Prefix table alias on the column |
237 | - $where['column'] = $this->prefixAlias($builder, $builder->from, $where['column'] ); |
|
237 | + $where['column'] = $this->prefixAlias($builder, $builder->from, $where['column']); |
|
238 | 238 | |
239 | 239 | return [ |
240 | 240 | $where['column'], |
@@ -342,7 +342,7 @@ discard block |
||
342 | 342 | */ |
343 | 343 | protected function compileOrders(Builder $builder, $orders) |
344 | 344 | { |
345 | - if (! empty($orders)) { |
|
345 | + if (!empty($orders)) { |
|
346 | 346 | $builder->aqb = $builder->aqb->sort($this->compileOrdersToArray($builder, $orders)); |
347 | 347 | return $builder; |
348 | 348 | } |
@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | */ |
360 | 360 | protected function compileOrdersToArray(Builder $builder, $orders) |
361 | 361 | { |
362 | - return array_map(function ($order) { |
|
362 | + return array_map(function($order) { |
|
363 | 363 | return $order['sql'] ?? $this->prefixTable($order['column']).' '.$order['direction']; |
364 | 364 | }, $orders); |
365 | 365 | } |
@@ -389,7 +389,7 @@ discard block |
||
389 | 389 | protected function compileLimit(Builder $builder, $limit) |
390 | 390 | { |
391 | 391 | if ($this->offset !== null) { |
392 | - $builder->aqb = $builder->aqb->limit((int)$this->offset, (int)$limit); |
|
392 | + $builder->aqb = $builder->aqb->limit((int) $this->offset, (int) $limit); |
|
393 | 393 | return $builder; |
394 | 394 | } |
395 | 395 | $builder->aqb = $builder->aqb->limit((int) $limit); |
@@ -468,7 +468,7 @@ discard block |
||
468 | 468 | $builder = $this->generateTableAlias($builder, $table); |
469 | 469 | $tableAlias = $builder->getAlias($table); |
470 | 470 | |
471 | - if (! is_null($_key)) { |
|
471 | + if (!is_null($_key)) { |
|
472 | 472 | $builder->aqb = $builder->aqb->remove((string) $_key, $table)->get(); |
473 | 473 | return $builder; |
474 | 474 | } |