Completed
Push — 5.1 ( 1afeb5...3bf20e )
by Jarek
04:44
created
src/Mappable.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
         if (!$this->alreadyJoined($query, $table)) {
256 256
             list($fk, $pk) = $this->getJoinKeys($relation);
257 257
 
258
-            $query->leftJoin($table, function ($join) use ($fk, $pk, $relation, $parent, $related) {
258
+            $query->leftJoin($table, function($join) use ($fk, $pk, $relation, $parent, $related) {
259 259
                 $join->on($fk, '=', $pk);
260 260
 
261 261
                 if ($relation instanceof MorphOne || $relation instanceof MorphTo) {
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
      */
356 356
     protected function getMappedWhereConstraint($method, ArgumentBag $args)
357 357
     {
358
-        return function ($query) use ($method, $args) {
358
+        return function($query) use ($method, $args) {
359 359
             call_user_func_array([$query, $method], $args->all());
360 360
         };
361 361
     }
Please login to merge, or discard this patch.
src/Metable.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
 
215 215
         $table = (new Attribute)->getTable();
216 216
 
217
-        $query->leftJoin("{$table} as {$alias}", function ($join) use ($alias, $column) {
217
+        $query->leftJoin("{$table} as {$alias}", function($join) use ($alias, $column) {
218 218
             $join->on("{$alias}.metable_id", '=', $this->getQualifiedKeyName())
219 219
                 ->where("{$alias}.metable_type", '=', $this->getMorphClass())
220 220
                 ->where("{$alias}.meta_key", '=', $column);
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
326 326
             return $this->getMetaBetweenConstraint($column, $args->get('values'));
327 327
         }
328 328
 
329
-        return function ($query) use ($column, $method, $args) {
329
+        return function($query) use ($column, $method, $args) {
330 330
             $query->where('meta_key', $column);
331 331
 
332 332
             if ($args->get('value') || $args->get('values')) {
@@ -347,7 +347,7 @@  discard block
 block discarded – undo
347 347
         $min = $values[0];
348 348
         $max = $values[1];
349 349
 
350
-        return function ($query) use ($column, $min, $max) {
350
+        return function($query) use ($column, $min, $max) {
351 351
             $query->where('meta_key', $column)
352 352
                 ->where('meta_value', '>=', $min)
353 353
                 ->where('meta_value', '<=', $max);
Please login to merge, or discard this patch.
src/Builder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
 
321 321
         $operator = $this->getLikeOperator();
322 322
 
323
-        $bindings['select'] = $bindings['where'] = array_map(function ($word) {
323
+        $bindings['select'] = $bindings['where'] = array_map(function($word) {
324 324
             return $this->caseBinding($word);
325 325
         }, $words);
326 326
 
@@ -347,7 +347,7 @@  discard block
 block discarded – undo
347 347
             foreach ($words as $key => $word) {
348 348
                 if ($this->isWildcard($word)) {
349 349
                     $wildcards[] = sprintf('%s %s ?', $column->getWrapped(), $operator);
350
-                    $bindings['select'][] = $bindings['where'][$key] = '%'.$this->caseBinding($word) . '%';
350
+                    $bindings['select'][] = $bindings['where'][$key] = '%' . $this->caseBinding($word) . '%';
351 351
                 }
352 352
             }
353 353
 
Please login to merge, or discard this patch.