Completed
Push — master ( f92ea0...7290c2 )
by
unknown
25s queued 10s
created
src/Commands/GenerateDocumentation.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 
71 71
         $groupedRoutes = collect($parsedRoutes)
72 72
             ->groupBy('metadata.groupName')
73
-            ->sortBy(static function ($group) {
73
+            ->sortBy(static function($group) {
74 74
                 /* @var $group Collection */
75 75
                 return $group->first()['metadata']['groupName'];
76 76
             }, SORT_NATURAL);
@@ -106,17 +106,17 @@  discard block
 block discarded – undo
106 106
             }
107 107
 
108 108
             $routeControllerAndMethod = Utils::getRouteClassAndMethodNames($route->getAction());
109
-            if (! $this->isValidRoute($routeControllerAndMethod)) {
109
+            if (!$this->isValidRoute($routeControllerAndMethod)) {
110 110
                 $this->warn(sprintf($messageFormat, 'Skipping invalid', $routeMethods, $routePath));
111 111
                 continue;
112 112
             }
113 113
 
114
-            if (! $this->doesControllerMethodExist($routeControllerAndMethod)) {
114
+            if (!$this->doesControllerMethodExist($routeControllerAndMethod)) {
115 115
                 $this->warn(sprintf($messageFormat, 'Skipping', $routeMethods, $routePath) . ': Controller method does not exist.');
116 116
                 continue;
117 117
             }
118 118
 
119
-            if (! $this->isRouteVisibleForDocumentation($routeControllerAndMethod)) {
119
+            if (!$this->isRouteVisibleForDocumentation($routeControllerAndMethod)) {
120 120
                 $this->warn(sprintf($messageFormat, 'Skipping', $routeMethods, $routePath) . ': @hideFromAPIDocumentation was specified.');
121 121
                 continue;
122 122
             }
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
             $routeControllerAndMethod = implode('@', $routeControllerAndMethod);
144 144
         }
145 145
 
146
-        return ! is_callable($routeControllerAndMethod) && ! is_null($routeControllerAndMethod);
146
+        return !is_callable($routeControllerAndMethod) && !is_null($routeControllerAndMethod);
147 147
     }
148 148
 
149 149
     /**
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
         [$class, $method] = $routeControllerAndMethod;
169 169
         $reflection = new ReflectionClass($class);
170 170
 
171
-        if (! $reflection->hasMethod($method)) {
171
+        if (!$reflection->hasMethod($method)) {
172 172
             return false;
173 173
         }
174 174
 
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
             $tags = $tags->concat($phpdoc->getTags());
200 200
         }
201 201
 
202
-        return $tags->filter(function ($tag) {
202
+        return $tags->filter(function($tag) {
203 203
             return $tag->getName() === 'hideFromAPIDocumentation';
204 204
         })->isEmpty();
205 205
     }
Please login to merge, or discard this patch.