Completed
Push — master ( 6b0411...a61b3b )
by Bas
04:04
created
src/Query/Builder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
         // If an ID is passed to the method, we will set the where clause to check the
101 101
         // ID to let developers to simply and quickly remove a single row from this
102 102
         // database without manually specifying the "where" clauses on the query.
103
-        if (! is_null($_key)) {
103
+        if (!is_null($_key)) {
104 104
             $this->where($this->from.'._key', '=', $_key);
105 105
         }
106 106
         $aqb = $this->grammar->compileDelete($this, $_key);
Please login to merge, or discard this patch.
src/Query/Grammars/Grammar.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@
 block discarded – undo
162 162
      */
163 163
     protected function compileFrom(\Illuminate\Database\Query\Builder $query, FluentAQL $aqb, $table)
164 164
     {
165
-         return $aqb->for($this->generateVariable($table), $this->prefixTable($table));
165
+            return $aqb->for($this->generateVariable($table), $this->prefixTable($table));
166 166
     }
167 167
 
168 168
     /**
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
             // see if that component exists. If it does we'll just call the compiler
142 142
             // function for the component which is responsible for making the SQL.
143 143
 
144
-            if (isset($query->$component) && ! is_null($query->$component)) {
144
+            if (isset($query->$component) && !is_null($query->$component)) {
145 145
                 $method = 'compile'.ucfirst($component);
146 146
 
147 147
                 $aqb = $this->$method($query, $aqb, $query->$component);
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
      */
198 198
     protected function compileWheresToArray($query)
199 199
     {
200
-        $result = collect($query->wheres)->map(function ($where) use ($query) {
200
+        $result = collect($query->wheres)->map(function($where) use ($query) {
201 201
             // ArangoDB uses a double '=' for comparison
202 202
             if ($where['operator'] == '=') {
203 203
                 $where['operator'] = '==';
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
      */
223 223
     protected function compileOrders(Builder $query, FluentAQL $aqb, $orders)
224 224
     {
225
-        if (! empty($orders)) {
225
+        if (!empty($orders)) {
226 226
             return $aqb->sort($this->compileOrdersToArray($query, $orders));
227 227
         }
228 228
 
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
      */
239 239
     protected function compileOrdersToArray(Builder $query, $orders)
240 240
     {
241
-        return array_map(function ($order) {
241
+        return array_map(function($order) {
242 242
             return $order['sql'] ?? $this->prefixTable($order['column']).' '.$order['direction'];
243 243
         }, $orders);
244 244
     }
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
     protected function compileLimit(Builder $query, FluentAQL $aqb, $limit)
271 271
     {
272 272
         if ($this->offset !== null) {
273
-            return $aqb->limit((int)$this->offset, (int)$limit);
273
+            return $aqb->limit((int) $this->offset, (int) $limit);
274 274
         }
275 275
         return $aqb->limit((int) $limit);
276 276
     }
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
      */
317 317
     public function compileUpdate(Builder $query, array $values)
318 318
     {
319
-        $aqb =  $query->aqb;
319
+        $aqb = $query->aqb;
320 320
         $table = $this->prefixTable($query->from);
321 321
         $tableVariable = $this->generateVariable($table);
322 322
         $aqb = $aqb->for($tableVariable, $table);
@@ -337,9 +337,9 @@  discard block
 block discarded – undo
337 337
      */
338 338
     public function compileDelete(Builder $query, $_key = null)
339 339
     {
340
-        $aqb =  $query->aqb;
340
+        $aqb = $query->aqb;
341 341
         $table = $this->prefixTable($query->from);
342
-        if (! is_null($_key)) {
342
+        if (!is_null($_key)) {
343 343
             return $aqb->remove((string) $_key, $table)->get();
344 344
         }
345 345
 
Please login to merge, or discard this patch.
src/Connection.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
      */
155 155
     public function cursor($query, $bindings = [], $useReadPdo = null, $transactionCollections = null)
156 156
     {
157
-        return $this->run($query, $bindings, function ($query, $bindings) use ($transactionCollections) {
157
+        return $this->run($query, $bindings, function($query, $bindings) use ($transactionCollections) {
158 158
             if ($this->pretending()) {
159 159
                 return [];
160 160
             }
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
             $query = $query->query;
188 188
         }
189 189
 
190
-        return $this->run($query, $bindings, function ($query, $bindings) use ($transactionCollections) {
190
+        return $this->run($query, $bindings, function($query, $bindings) use ($transactionCollections) {
191 191
             if ($this->pretending()) {
192 192
                 return true;
193 193
             }
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
             $query = $query->query;
225 225
         }
226 226
 
227
-        return $this->run($query, $bindings, function ($query, $bindings) use ($transactionCollections) {
227
+        return $this->run($query, $bindings, function($query, $bindings) use ($transactionCollections) {
228 228
             if ($this->pretending()) {
229 229
                 return 0;
230 230
             }
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
      */
260 260
     public function unprepared($query)
261 261
     {
262
-        return $this->run($query, [], function ($query) {
262
+        return $this->run($query, [], function($query) {
263 263
             if ($this->pretending()) {
264 264
                 return true;
265 265
             }
@@ -329,7 +329,7 @@  discard block
 block discarded – undo
329 329
             $query = $query->query;
330 330
         }
331 331
 
332
-        return $this->run($query, $bindings, function ($query, $bindings, $transactionCollections= null) {
332
+        return $this->run($query, $bindings, function($query, $bindings, $transactionCollections = null) {
333 333
             if ($this->pretending()) {
334 334
                 return [];
335 335
             }
Please login to merge, or discard this patch.