Passed
Push — ft/urls ( 7899d1...e62e9d )
by Ben
67:32 queued 34:43
created
src/Filters/Filters.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     public function anyApplied(): bool
37 37
     {
38 38
         foreach ($this->all() as $filter) {
39
-            if(request()->filled($filter->name)) {
39
+            if (request()->filled($filter->name)) {
40 40
                 return true;
41 41
             }
42 42
         }
@@ -48,8 +48,8 @@  discard block
 block discarded – undo
48 48
     {
49 49
         $requestInput = request()->all();
50 50
 
51
-        return array_reduce($this->all(), function ($carry, Filter $filter) use ($requestInput) {
52
-            return $carry . $filter->render($requestInput);
51
+        return array_reduce($this->all(), function($carry, Filter $filter) use ($requestInput) {
52
+            return $carry.$filter->render($requestInput);
53 53
         }, '');
54 54
     }
55 55
 
@@ -65,14 +65,14 @@  discard block
 block discarded – undo
65 65
 
66 66
     public function keys(): array
67 67
     {
68
-        return array_map(function (Filter $filter) {
68
+        return array_map(function(Filter $filter) {
69 69
             return $filter->key();
70 70
         }, $this->filters);
71 71
     }
72 72
 
73 73
     private function validateFilters(array $filters)
74 74
     {
75
-        array_map(function (Filter $filter) {
75
+        array_map(function(Filter $filter) {
76 76
         }, $filters);
77 77
     }
78 78
 
@@ -97,8 +97,8 @@  discard block
 block discarded – undo
97 97
 
98 98
     public function offsetSet($offset, $value)
99 99
     {
100
-        if (! $value instanceof Filter) {
101
-            throw new \InvalidArgumentException('Passed value must be of type ' . Filter::class);
100
+        if (!$value instanceof Filter) {
101
+            throw new \InvalidArgumentException('Passed value must be of type '.Filter::class);
102 102
         }
103 103
 
104 104
         $this->filters[$offset] = $value;
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
 
117 117
     private function sanitizeFilters(array $filters)
118 118
     {
119
-        return array_map(function ($filter) {
119
+        return array_map(function($filter) {
120 120
             if (is_string($filter) && class_exists($filter)) {
121 121
                 return $filter::init();
122 122
             }
Please login to merge, or discard this patch.
src/Concerns/Viewable/ViewPath.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      */
35 35
     public function get(): string
36 36
     {
37
-        $basePath = $this->viewBasePath ? $this->viewBasePath . '.' : '';
37
+        $basePath = $this->viewBasePath ? $this->viewBasePath.'.' : '';
38 38
         $guessedParentViewName = $this->parent ? $this->parent->viewKey() : '';
39 39
         $guessedViewName = $this->viewable->viewKey();
40 40
 
@@ -53,14 +53,14 @@  discard block
 block discarded – undo
53 53
         }
54 54
 
55 55
         foreach ($viewPaths as $viewPath) {
56
-            if (! view()->exists($viewPath)) {
56
+            if (!view()->exists($viewPath)) {
57 57
                 continue;
58 58
             }
59 59
 
60 60
             return $viewPath;
61 61
         }
62 62
 
63
-        if (! view()->exists($basePath.'show')){
63
+        if (!view()->exists($basePath.'show')) {
64 64
             throw new NotFoundView('Viewfile not found for ['.get_class($this->viewable).']. Make sure the default view ['.$basePath.'show] exists.');
65 65
         }
66 66
     }
Please login to merge, or discard this patch.