Passed
Pull Request — master (#135)
by Zing
05:16
created
src/Concerns/WithTypedFilter.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,8 +21,8 @@  discard block
 block discarded – undo
21 21
         }
22 22
         $property = $this->request->input($type);
23 23
         $filterValue = $this->request->input($value);
24
-       $filter= collect($filters)
25
-           ->filter(function ($filter)use ($property){
24
+        $filter= collect($filters)
25
+            ->filter(function ($filter)use ($property){
26 26
             $filter = $filter instanceof Filter ? $filter : Filter::exact($filter);
27 27
 
28 28
             if ($filter->getDefault() !== null) {
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
             return $filter->isForProperty($property);
33 33
         })
34
-           ->first();
34
+            ->first();
35 35
         $filter->filter($this->builder, $filterValue);
36 36
 
37 37
         return $this;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,12 +16,12 @@
 block discarded – undo
16 16
      */
17 17
     public function enableTypedFilter(string $type, string $value, array $filters): self
18 18
     {
19
-        if (! $this->request->has($type)) {
19
+        if (!$this->request->has($type)) {
20 20
             return $this;
21 21
         }
22 22
         $property = $this->request->input($type);
23 23
         $filterValue = $this->request->input($value);
24
-       $filter= collect($filters)
24
+       $filter = collect($filters)
25 25
            ->filter(function ($filter)use ($property){
26 26
             $filter = $filter instanceof Filter ? $filter : Filter::exact($filter);
27 27
 
Please login to merge, or discard this patch.