@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | */ |
110 | 110 | public function compileInsert(Builder $builder, array $values) |
111 | 111 | { |
112 | - if (! is_array(reset($values))) { |
|
112 | + if (!is_array(reset($values))) { |
|
113 | 113 | $values = [$values]; |
114 | 114 | } |
115 | 115 | |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | // see if that component exists. If it does we'll just call the compiler |
184 | 184 | // function for the component which is responsible for making the SQL. |
185 | 185 | |
186 | - if (isset($builder->$component) && ! is_null($builder->$component)) { |
|
186 | + if (isset($builder->$component) && !is_null($builder->$component)) { |
|
187 | 187 | $method = 'compile'.ucfirst($component); |
188 | 188 | |
189 | 189 | $builder = $this->$method($builder, $builder->$component); |
@@ -243,7 +243,7 @@ discard block |
||
243 | 243 | */ |
244 | 244 | protected function compileWheresToArray($builder) |
245 | 245 | { |
246 | - $result = collect($builder->wheres)->map(function ($where) use ($builder) { |
|
246 | + $result = collect($builder->wheres)->map(function($where) use ($builder) { |
|
247 | 247 | // ArangoDB uses a double '=' for comparison |
248 | 248 | if ($where['operator'] == '=') { |
249 | 249 | $where['operator'] = '=='; |
@@ -364,7 +364,7 @@ discard block |
||
364 | 364 | */ |
365 | 365 | protected function compileOrders(Builder $builder, $orders) |
366 | 366 | { |
367 | - if (! empty($orders)) { |
|
367 | + if (!empty($orders)) { |
|
368 | 368 | $builder->aqb = $builder->aqb->sort($this->compileOrdersToArray($builder, $orders)); |
369 | 369 | |
370 | 370 | return $builder; |
@@ -383,9 +383,9 @@ discard block |
||
383 | 383 | protected function compileOrdersToArray(Builder $builder, $orders) |
384 | 384 | { |
385 | 385 | |
386 | - return array_map(function ($order) use ($builder) { |
|
386 | + return array_map(function($order) use ($builder) { |
|
387 | 387 | |
388 | - if (! isset($order['type']) || $order['type'] != 'Raw') { |
|
388 | + if (!isset($order['type']) || $order['type'] != 'Raw') { |
|
389 | 389 | $order['column'] = $this->prefixAlias($builder, $builder->from, $order['column']); |
390 | 390 | } |
391 | 391 | unset($order['type']); |
@@ -498,7 +498,7 @@ discard block |
||
498 | 498 | $builder = $this->generateTableAlias($builder, $table); |
499 | 499 | $tableAlias = $builder->getAlias($table); |
500 | 500 | |
501 | - if (! is_null($_key)) { |
|
501 | + if (!is_null($_key)) { |
|
502 | 502 | $builder->aqb = $builder->aqb->remove((string) $_key, $table)->get(); |
503 | 503 | |
504 | 504 | return $builder; |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | $this->connection = $connection; |
57 | 57 | $this->grammar = $grammar ?: $connection->getQueryGrammar(); |
58 | 58 | $this->processor = $processor ?: $connection->getPostProcessor(); |
59 | - if (! $aqb instanceof QueryBuilder) { |
|
59 | + if (!$aqb instanceof QueryBuilder) { |
|
60 | 60 | $aqb = new QueryBuilder(); |
61 | 61 | } |
62 | 62 | $this->aqb = $aqb; |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | */ |
124 | 124 | public function get($columns = ['*']) |
125 | 125 | { |
126 | - $results = collect($this->onceWithColumns(Arr::wrap($columns), function () { |
|
126 | + $results = collect($this->onceWithColumns(Arr::wrap($columns), function() { |
|
127 | 127 | return $this->runSelect(); |
128 | 128 | })); |
129 | 129 | |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | $results = $this->cloneWithout($this->unions ? [] : ['columns']) |
181 | 181 | ->setAggregate($function, $columns) |
182 | 182 | ->get($columns); |
183 | - if (! $results->isEmpty()) { |
|
183 | + if (!$results->isEmpty()) { |
|
184 | 184 | return $results[0]; |
185 | 185 | } |
186 | 186 | |
@@ -254,7 +254,7 @@ discard block |
||
254 | 254 | 'type', 'column', 'operator', 'value', 'boolean' |
255 | 255 | ); |
256 | 256 | |
257 | - if (! $value instanceof Expression) { |
|
257 | + if (!$value instanceof Expression) { |
|
258 | 258 | $this->addBinding($value, 'where'); |
259 | 259 | } |
260 | 260 | |
@@ -270,8 +270,8 @@ discard block |
||
270 | 270 | protected function invalidOperator($operator) |
271 | 271 | { |
272 | 272 | |
273 | - return ! in_array(strtolower($operator), $this->operators, true) && |
|
274 | - ! isset($this->grammar->getOperators()[strtolower($operator)]); |
|
273 | + return !in_array(strtolower($operator), $this->operators, true) && |
|
274 | + !isset($this->grammar->getOperators()[strtolower($operator)]); |
|
275 | 275 | } |
276 | 276 | |
277 | 277 |