Passed
Push — master ( 540a68...18de78 )
by Tom
03:52 queued 01:34
created
src/Traits/HasLinksTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/LinkBuilder.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -41,11 +41,11 @@  discard block
 block discarded – undo
41 41
             case 'destroy':
42 42
             case 'update':
43 43
             case 'show':
44
-                $params = [$model->getRouteKey() => $model->getAttribute((string)$model->getKeyName())];
44
+                $params = [$model->getRouteKey() => $model->getAttribute((string) $model->getKeyName())];
45 45
                 break;
46 46
             case 'show.extra':
47 47
                 $params = [
48
-                    $model->getRouteKey() => $model->getAttribute((string)$model->getKeyName()),
48
+                    $model->getRouteKey() => $model->getAttribute((string) $model->getKeyName()),
49 49
                     'extra' => $method
50 50
                 ];
51 51
                 break;
@@ -53,9 +53,9 @@  discard block
 block discarded – undo
53 53
 
54 54
         // Get the methods applicable to the route, ignoring HEAD and PATCH.
55 55
         $methods = collect($route->methods());
56
-        $methods = $methods->filter(static function ($item) {
56
+        $methods = $methods->filter(static function($item) {
57 57
             return !in_array($item, ['HEAD', 'PATCH']);
58
-        })->map(static function ($str) {
58
+        })->map(static function($str) {
59 59
             return strtolower($str);
60 60
         });
61 61
 
Please login to merge, or discard this patch.
src/AbstractRestfulController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -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/Builder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
                 /** @var MessagesCollector $collector */
150 150
                 $collector = $debugBar->getCollector('restful_calls');
151 151
                 $collector->addMessage(sprintf('REST-CALL: %s to %s', $route->getMethod(), $url));
152
-            } catch (DebugBarException|BindingResolutionException $e) {
152
+            } catch (DebugBarException | BindingResolutionException $e) {
153 153
             }
154 154
         }
155 155
 
@@ -340,7 +340,7 @@  discard block
 block discarded – undo
340 340
 
341 341
         return $instance->newCollection(
342 342
             array_map(
343
-                function ($item) use ($instance) {
343
+                function($item) use ($instance) {
344 344
                     return $instance->newFromBuilder($item);
345 345
                 },
346 346
                 $data
Please login to merge, or discard this patch.