@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | public function handle() |
58 | 58 | { |
59 | 59 | // in order to avoid PHP memory limit error |
60 | - ini_set('memory_limit','512M'); |
|
60 | + ini_set('memory_limit', '512M'); |
|
61 | 61 | |
62 | 62 | // Using a global static variable here, so fuck off if you don't like it. |
63 | 63 | // Also, the --verbose option is included with all Artisan commands. |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | |
77 | 77 | $groupedRoutes = collect($parsedRoutes) |
78 | 78 | ->groupBy('metadata.groupName') |
79 | - ->sortBy(static function ($group) { |
|
79 | + ->sortBy(static function($group) { |
|
80 | 80 | /* @var $group Collection */ |
81 | 81 | return $group->first()['metadata']['groupName']; |
82 | 82 | }, SORT_NATURAL); |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | $routeMethods = implode(',', $generator->getMethods($route)); |
105 | 105 | $routePath = $generator->getUri($route); |
106 | 106 | |
107 | - if (! $this->isValidRoute($route) || ! $this->isRouteVisibleForDocumentation($route->getAction())) { |
|
107 | + if (!$this->isValidRoute($route) || !$this->isRouteVisibleForDocumentation($route->getAction())) { |
|
108 | 108 | $this->warn(sprintf($messageFormat, 'Skipping', $routeMethods, $routePath)); |
109 | 109 | continue; |
110 | 110 | } |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | $parsedRoutes[] = $generator->processRoute($route, $routeItem['apply'] ?? []); |
114 | 114 | $this->info(sprintf($messageFormat, 'Processed', $routeMethods, $routePath)); |
115 | 115 | } catch (\Exception $exception) { |
116 | - $this->warn(sprintf($messageFormat, 'Skipping', $routeMethods, $routePath).' - '.$exception->getMessage()); |
|
116 | + $this->warn(sprintf($messageFormat, 'Skipping', $routeMethods, $routePath) . ' - ' . $exception->getMessage()); |
|
117 | 117 | } |
118 | 118 | } |
119 | 119 | |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | $action = implode('@', $action); |
133 | 133 | } |
134 | 134 | |
135 | - return ! is_callable($action) && ! is_null($action); |
|
135 | + return !is_callable($action) && !is_null($action); |
|
136 | 136 | } |
137 | 137 | |
138 | 138 | /** |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | list($class, $method) = Utils::getRouteClassAndMethodNames($action); |
148 | 148 | $reflection = new ReflectionClass($class); |
149 | 149 | |
150 | - if (! $reflection->hasMethod($method)) { |
|
150 | + if (!$reflection->hasMethod($method)) { |
|
151 | 151 | return false; |
152 | 152 | } |
153 | 153 | |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | $phpdoc = new DocBlock($comment); |
158 | 158 | |
159 | 159 | return collect($phpdoc->getTags()) |
160 | - ->filter(function ($tag) { |
|
160 | + ->filter(function($tag) { |
|
161 | 161 | return $tag->getName() === 'hideFromAPIDocumentation'; |
162 | 162 | }) |
163 | 163 | ->isEmpty(); |