Passed
Pull Request — master (#1)
by Tom
02:08
created
src/AbstractRestfulController.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -277,7 +277,7 @@
 block discarded – undo
277 277
      * Redirects to the show route for the model if one exists.
278 278
      * @param Request $request
279 279
      * @param mixed $data
280
-     * @return RedirectResponse|Redirector|null
280
+     * @return null|RedirectResponse
281 281
      */
282 282
     private function redirectToShowRoute(Request $request, $data)
283 283
     {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/Traits/HasLinksTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 
82 82
         foreach ($methods as $method) {
83 83
             $method2 = new ReflectionMethod($this, $method);
84
-            $return = (string)$method2->getReturnType();
84
+            $return = (string) $method2->getReturnType();
85 85
 
86 86
             if (empty($return)) {
87 87
                 continue;
@@ -159,9 +159,9 @@  discard block
 block discarded – undo
159 159
 
160 160
         // Get the methods applicable to the route, ignoring HEAD and PATCH.
161 161
         $methods = collect($route->methods());
162
-        $methods = $methods->filter(static function ($item) {
162
+        $methods = $methods->filter(static function($item) {
163 163
             return !in_array($item, ['HEAD', 'PATCH']);
164
-        })->map(static function ($str) {
164
+        })->map(static function($str) {
165 165
             return strtolower($str);
166 166
         });
167 167
 
Please login to merge, or discard this patch.