@@ -29,11 +29,11 @@ discard block |
||
| 29 | 29 | return $builder->whereIn('id', $nums); |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | - if (! $nums && $slugs) { |
|
| 32 | + if ( ! $nums && $slugs) { |
|
| 33 | 33 | return $builder->whereIn('slug', $slugs); |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | - return $builder->where(function (Builder $builder) use ($nums, $slugs) { |
|
| 36 | + return $builder->where(function(Builder $builder) use ($nums, $slugs) { |
|
| 37 | 37 | $builder |
| 38 | 38 | ->whereIn('id', $nums) |
| 39 | 39 | ->orWhereIn('slug', $slugs); |
@@ -59,21 +59,21 @@ discard block |
||
| 59 | 59 | */ |
| 60 | 60 | protected function map($values): array |
| 61 | 61 | { |
| 62 | - return array_map(function ($value) { |
|
| 62 | + return array_map(function($value) { |
|
| 63 | 63 | return $this->getId($value); |
| 64 | 64 | }, $this->toArray($values)); |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | protected function filterNum(array $values): array |
| 68 | 68 | { |
| 69 | - return array_filter($values, function ($value) { |
|
| 69 | + return array_filter($values, function($value) { |
|
| 70 | 70 | return is_numeric($value); |
| 71 | 71 | }); |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | protected function filterSlugs(array $values): array |
| 75 | 75 | { |
| 76 | - return array_filter($values, function ($value) { |
|
| 76 | + return array_filter($values, function($value) { |
|
| 77 | 77 | return ! is_numeric($value); |
| 78 | 78 | }); |
| 79 | 79 | } |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | return [$values]; |
| 85 | 85 | } elseif ($this->isArrayable($values)) { |
| 86 | 86 | $values = $values->toArray(); |
| 87 | - } elseif (! $this->isArray($values)) { |
|
| 87 | + } elseif ( ! $this->isArray($values)) { |
|
| 88 | 88 | $values = Arr::wrap($values); |
| 89 | 89 | } |
| 90 | 90 | |