Passed
Push — master ( c3a55a...c89bf9 )
by Andrey
14:43 queued 15s
created
src/Support/Database/Search.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -27,11 +27,11 @@  discard block
 block discarded – undo
27 27
             return $builder->whereIn('id', $nums);
28 28
         }
29 29
 
30
-        if (! $nums && $slugs) {
30
+        if ( ! $nums && $slugs) {
31 31
             return $builder->whereIn('slug', $slugs);
32 32
         }
33 33
 
34
-        return $builder->where(function (Builder $builder) use ($nums, $slugs) {
34
+        return $builder->where(function(Builder $builder) use ($nums, $slugs) {
35 35
             $builder
36 36
                 ->whereIn('id', $nums)
37 37
                 ->orWhereIn('slug', $slugs);
@@ -57,21 +57,21 @@  discard block
 block discarded – undo
57 57
      */
58 58
     protected function map($values): array
59 59
     {
60
-        return array_map(function ($value) {
60
+        return array_map(function($value) {
61 61
             return $this->getId($value);
62 62
         }, $this->toArray($values));
63 63
     }
64 64
 
65 65
     protected function filterNum(array $values): array
66 66
     {
67
-        return array_filter($values, function ($value) {
67
+        return array_filter($values, function($value) {
68 68
             return is_numeric($value);
69 69
         });
70 70
     }
71 71
 
72 72
     protected function filterSlugs(array $values): array
73 73
     {
74
-        return array_filter($values, function ($value) {
74
+        return array_filter($values, function($value) {
75 75
             return ! is_numeric($value);
76 76
         });
77 77
     }
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     {
81 81
         if ($this->isArrayable($values)) {
82 82
             $values = $values->toArray();
83
-        } elseif (! $this->isArray($values)) {
83
+        } elseif ( ! $this->isArray($values)) {
84 84
             $values = Arr::wrap($values);
85 85
         }
86 86
 
Please login to merge, or discard this patch.