@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | { |
50 | 50 | $builder = $this->createModelQueryBuilder(); |
51 | 51 | |
52 | - foreach ((array)$request->input() as $column => $value) { |
|
52 | + foreach ((array) $request->input() as $column => $value) { |
|
53 | 53 | $this->filterValue($builder, $column, $value); |
54 | 54 | } |
55 | 55 | |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | { |
68 | 68 | $model = $this->newModelInstance(); |
69 | 69 | |
70 | - foreach ((array)$request->input() as $column => $value) { |
|
70 | + foreach ((array) $request->input() as $column => $value) { |
|
71 | 71 | $model->$column = $value; |
72 | 72 | } |
73 | 73 | |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | { |
103 | 103 | $model = $this->findModel($id); |
104 | 104 | |
105 | - foreach ((array)$request->input() as $column => $value) { |
|
105 | + foreach ((array) $request->input() as $column => $value) { |
|
106 | 106 | $model->$column = $value; |
107 | 107 | } |
108 | 108 | |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | return $model; |
168 | 168 | } |
169 | 169 | |
170 | - $parts = array_filter(explode('/', (string)$request->route()->parameter('extra'))); |
|
170 | + $parts = array_filter(explode('/', (string) $request->route()->parameter('extra'))); |
|
171 | 171 | |
172 | 172 | // Loop through the parts. |
173 | 173 | foreach ($parts as $part) { |
@@ -97,7 +97,7 @@ |
||
97 | 97 | |
98 | 98 | foreach ($methods as $method) { |
99 | 99 | $method2 = new ReflectionMethod($this, $method); |
100 | - $return = (string)$method2->getReturnType(); |
|
100 | + $return = (string) $method2->getReturnType(); |
|
101 | 101 | |
102 | 102 | if (empty($return)) { |
103 | 103 | continue; |
@@ -40,15 +40,15 @@ |
||
40 | 40 | case 'destroy': |
41 | 41 | case 'update': |
42 | 42 | case 'show': |
43 | - $params = [$model->getRouteKey() => $model->getAttribute((string)$model->getKeyName())]; |
|
43 | + $params = [$model->getRouteKey() => $model->getAttribute((string) $model->getKeyName())]; |
|
44 | 44 | break; |
45 | 45 | } |
46 | 46 | |
47 | 47 | // Get the methods applicable to the route, ignoring HEAD and PATCH. |
48 | 48 | $methods = collect($route->methods()); |
49 | - $methods = $methods->filter(static function ($item) { |
|
49 | + $methods = $methods->filter(static function($item) { |
|
50 | 50 | return !in_array($item, ['HEAD', 'PATCH']); |
51 | - })->map(static function ($str) { |
|
51 | + })->map(static function($str) { |
|
52 | 52 | return strtolower($str); |
53 | 53 | }); |
54 | 54 |