@@ -41,7 +41,6 @@ |
||
| 41 | 41 | /** |
| 42 | 42 | * Prepares / Disables route middlewares. |
| 43 | 43 | * |
| 44 | - * @param bool $disable |
|
| 45 | 44 | * |
| 46 | 45 | * @return void |
| 47 | 46 | */ |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | */ |
| 58 | 58 | public function prepareMiddleware($enable = true) |
| 59 | 59 | { |
| 60 | - App::instance('middleware.disable', ! $enable); |
|
| 60 | + App::instance('middleware.disable', !$enable); |
|
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | /** |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | { |
| 26 | 26 | $dispatcher = app('Dingo\Api\Dispatcher')->raw(); |
| 27 | 27 | |
| 28 | - collect($server)->map(function ($key, $value) use ($dispatcher) { |
|
| 28 | + collect($server)->map(function($key, $value) use ($dispatcher) { |
|
| 29 | 29 | $dispatcher->header($value, $key); |
| 30 | 30 | }); |
| 31 | 31 | |
@@ -44,8 +44,8 @@ discard block |
||
| 44 | 44 | |
| 45 | 45 | $documentarian = new Documentarian(); |
| 46 | 46 | |
| 47 | - if (! is_dir($outputPath)) { |
|
| 48 | - $this->error('There is no generated documentation available at '.$outputPath.'.'); |
|
| 47 | + if (!is_dir($outputPath)) { |
|
| 48 | + $this->error('There is no generated documentation available at ' . $outputPath . '.'); |
|
| 49 | 49 | |
| 50 | 50 | return false; |
| 51 | 51 | } |
@@ -53,6 +53,6 @@ discard block |
||
| 53 | 53 | |
| 54 | 54 | $documentarian->generate($outputPath); |
| 55 | 55 | |
| 56 | - $this->info('Wrote HTML documentation to: '.$outputPath.'/index.html'); |
|
| 56 | + $this->info('Wrote HTML documentation to: ' . $outputPath . '/index.html'); |
|
| 57 | 57 | } |
| 58 | 58 | } |
@@ -32,11 +32,11 @@ discard block |
||
| 32 | 32 | 'description' => '', |
| 33 | 33 | 'schema' => 'https://schema.getpostman.com/json/collection/v2.0.0/collection.json', |
| 34 | 34 | ], |
| 35 | - 'item' => $this->routeGroups->map(function ($routes, $groupName) { |
|
| 35 | + 'item' => $this->routeGroups->map(function($routes, $groupName) { |
|
| 36 | 36 | return [ |
| 37 | 37 | 'name' => $groupName, |
| 38 | 38 | 'description' => '', |
| 39 | - 'item' => $routes->map(function ($route) { |
|
| 39 | + 'item' => $routes->map(function($route) { |
|
| 40 | 40 | return [ |
| 41 | 41 | 'name' => $route['title'] != '' ? $route['title'] : url($route['uri']), |
| 42 | 42 | 'request' => [ |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | 'method' => $route['methods'][0], |
| 45 | 45 | 'body' => [ |
| 46 | 46 | 'mode' => 'formdata', |
| 47 | - 'formdata' => collect($route['parameters'])->map(function ($parameter, $key) { |
|
| 47 | + 'formdata' => collect($route['parameters'])->map(function($parameter, $key) { |
|
| 48 | 48 | return [ |
| 49 | 49 | 'key' => $key, |
| 50 | 50 | 'value' => isset($parameter['value']) ? $parameter['value'] : '', |
@@ -48,14 +48,14 @@ discard block |
||
| 48 | 48 | |
| 49 | 49 | private function getAllRoutes(bool $usingDingoRouter, array $versions = []) |
| 50 | 50 | { |
| 51 | - if (! $usingDingoRouter) { |
|
| 51 | + if (!$usingDingoRouter) { |
|
| 52 | 52 | return RouteFacade::getRoutes(); |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | $allRouteCollections = app(\Dingo\Api\Routing\Router::class)->getRoutes(); |
| 56 | 56 | |
| 57 | 57 | return collect($allRouteCollections) |
| 58 | - ->flatMap(function (RouteCollection $collection) { |
|
| 58 | + ->flatMap(function(RouteCollection $collection) { |
|
| 59 | 59 | return $collection->getRoutes(); |
| 60 | 60 | })->toArray(); |
| 61 | 61 | } |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | private function shouldIncludeRoute(Route $route, array $routeRule, array $mustIncludes, bool $usingDingoRouter) |
| 64 | 64 | { |
| 65 | 65 | $matchesVersion = $usingDingoRouter |
| 66 | - ? ! empty(array_intersect($route->versions(), $routeRule['match']['versions'] ?? [])) |
|
| 66 | + ? !empty(array_intersect($route->versions(), $routeRule['match']['versions'] ?? [])) |
|
| 67 | 67 | : true; |
| 68 | 68 | |
| 69 | 69 | return in_array($route->getName(), $mustIncludes) |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | /** |
| 27 | 27 | * @param Route $route |
| 28 | 28 | * |
| 29 | - * @return mixed |
|
| 29 | + * @return string |
|
| 30 | 30 | */ |
| 31 | 31 | public function getUri(Route $route) |
| 32 | 32 | { |
@@ -45,7 +45,6 @@ discard block |
||
| 45 | 45 | |
| 46 | 46 | /** |
| 47 | 47 | * @param \Illuminate\Routing\Route $route |
| 48 | - * @param array $apply Rules to apply when generating documentation for this route |
|
| 49 | 48 | * |
| 50 | 49 | * @return array |
| 51 | 50 | */ |
@@ -72,7 +71,6 @@ discard block |
||
| 72 | 71 | /** |
| 73 | 72 | * Prepares / Disables route middlewares. |
| 74 | 73 | * |
| 75 | - * @param bool $disable |
|
| 76 | 74 | * |
| 77 | 75 | * @return void |
| 78 | 76 | */ |
@@ -153,7 +151,7 @@ discard block |
||
| 153 | 151 | * @param $route |
| 154 | 152 | * @param array $bindings |
| 155 | 153 | * |
| 156 | - * @return mixed |
|
| 154 | + * @return string |
|
| 157 | 155 | */ |
| 158 | 156 | protected function addRouteModelBindings($route, $bindings) |
| 159 | 157 | { |
@@ -169,7 +167,7 @@ discard block |
||
| 169 | 167 | /** |
| 170 | 168 | * @param \Illuminate\Routing\Route $route |
| 171 | 169 | * |
| 172 | - * @return array |
|
| 170 | + * @return Route |
|
| 173 | 171 | */ |
| 174 | 172 | protected function parseDocBlock($route) |
| 175 | 173 | { |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | $content = $this->getResponse($docBlock['tags']); |
| 58 | 58 | |
| 59 | 59 | return [ |
| 60 | - 'id' => md5($this->getUri($route).':'.implode($this->getMethods($route))), |
|
| 60 | + 'id' => md5($this->getUri($route) . ':' . implode($this->getMethods($route))), |
|
| 61 | 61 | 'resource' => $routeGroup, |
| 62 | 62 | 'title' => $docBlock['short'], |
| 63 | 63 | 'description' => $docBlock['long'], |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | 'uri' => $this->getUri($route), |
| 66 | 66 | 'parameters' => $this->getParametersFromDocBlock($docBlock['tags']), |
| 67 | 67 | 'response' => $content, |
| 68 | - 'showresponse' => ! empty($content), |
|
| 68 | + 'showresponse' => !empty($content), |
|
| 69 | 69 | ]; |
| 70 | 70 | } |
| 71 | 71 | |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | */ |
| 88 | 88 | protected function getDocblockResponse($tags) |
| 89 | 89 | { |
| 90 | - $responseTags = array_filter($tags, function ($tag) { |
|
| 90 | + $responseTags = array_filter($tags, function($tag) { |
|
| 91 | 91 | return $tag instanceof Tag && \strtolower($tag->getName()) == 'response'; |
| 92 | 92 | }); |
| 93 | 93 | if (empty($responseTags)) { |
@@ -106,10 +106,10 @@ discard block |
||
| 106 | 106 | protected function getParametersFromDocBlock($tags) |
| 107 | 107 | { |
| 108 | 108 | $parameters = collect($tags) |
| 109 | - ->filter(function ($tag) { |
|
| 109 | + ->filter(function($tag) { |
|
| 110 | 110 | return $tag instanceof Tag && $tag->getName() === 'bodyParam'; |
| 111 | 111 | }) |
| 112 | - ->mapWithKeys(function ($tag) { |
|
| 112 | + ->mapWithKeys(function($tag) { |
|
| 113 | 113 | preg_match('/(.+?)\s+(.+?)\s+(required\s+)?(.+)/', $tag->getContent(), $content); |
| 114 | 114 | list($_, $name, $type, $required, $description) = $content; |
| 115 | 115 | $required = trim($required) == 'required' ? true : false; |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | $methods = $this->getMethods($route); |
| 136 | 136 | |
| 137 | 137 | // Split headers into key - value pairs |
| 138 | - $headers = collect($headers)->map(function ($value) { |
|
| 138 | + $headers = collect($headers)->map(function($value) { |
|
| 139 | 139 | $split = explode(':', $value); // explode to get key + values |
| 140 | 140 | $key = array_shift($split); // extract the key and keep the values in the array |
| 141 | 141 | $value = implode(':', $split); // implode values into string again |
@@ -159,8 +159,8 @@ discard block |
||
| 159 | 159 | { |
| 160 | 160 | $uri = $this->getUri($route); |
| 161 | 161 | foreach ($bindings as $model => $id) { |
| 162 | - $uri = str_replace('{'.$model.'}', $id, $uri); |
|
| 163 | - $uri = str_replace('{'.$model.'?}', $id, $uri); |
|
| 162 | + $uri = str_replace('{' . $model . '}', $id, $uri); |
|
| 163 | + $uri = str_replace('{' . $model . '?}', $id, $uri); |
|
| 164 | 164 | } |
| 165 | 165 | |
| 166 | 166 | return $uri; |
@@ -239,8 +239,8 @@ discard block |
||
| 239 | 239 | foreach ($headers as $name => $value) { |
| 240 | 240 | $name = strtr(strtoupper($name), '-', '_'); |
| 241 | 241 | |
| 242 | - if (! Str::startsWith($name, $prefix) && $name !== 'CONTENT_TYPE') { |
|
| 243 | - $name = $prefix.$name; |
|
| 242 | + if (!Str::startsWith($name, $prefix) && $name !== 'CONTENT_TYPE') { |
|
| 243 | + $name = $prefix . $name; |
|
| 244 | 244 | } |
| 245 | 245 | |
| 246 | 246 | $server[$name] = $value; |
@@ -278,8 +278,8 @@ discard block |
||
| 278 | 278 | protected function getTransformerResponse($tags) |
| 279 | 279 | { |
| 280 | 280 | try { |
| 281 | - $transFormerTags = array_filter($tags, function ($tag) { |
|
| 282 | - if (! ($tag instanceof Tag)) { |
|
| 281 | + $transFormerTags = array_filter($tags, function($tag) { |
|
| 282 | + if (!($tag instanceof Tag)) { |
|
| 283 | 283 | return false; |
| 284 | 284 | } |
| 285 | 285 | |
@@ -290,8 +290,8 @@ discard block |
||
| 290 | 290 | return false; |
| 291 | 291 | } |
| 292 | 292 | |
| 293 | - $modelTag = array_first(array_filter($tags, function ($tag) { |
|
| 294 | - if (! ($tag instanceof Tag)) { |
|
| 293 | + $modelTag = array_first(array_filter($tags, function($tag) { |
|
| 294 | + if (!($tag instanceof Tag)) { |
|
| 295 | 295 | return false; |
| 296 | 296 | } |
| 297 | 297 | |
@@ -299,7 +299,7 @@ discard block |
||
| 299 | 299 | })); |
| 300 | 300 | $tag = \array_first($transFormerTags); |
| 301 | 301 | $transformer = $tag->getContent(); |
| 302 | - if (! \class_exists($transformer)) { |
|
| 302 | + if (!\class_exists($transformer)) { |
|
| 303 | 303 | // if we can't find the transformer we can't generate a response |
| 304 | 304 | return; |
| 305 | 305 | } |
@@ -314,7 +314,7 @@ discard block |
||
| 314 | 314 | } |
| 315 | 315 | if (\is_null($type)) { |
| 316 | 316 | if ($parameter->hasType() && |
| 317 | - ! $parameter->getType()->isBuiltin() && |
|
| 317 | + !$parameter->getType()->isBuiltin() && |
|
| 318 | 318 | \class_exists((string) $parameter->getType())) { |
| 319 | 319 | //we have a type |
| 320 | 320 | $type = (string) $parameter->getType(); |
@@ -367,7 +367,7 @@ discard block |
||
| 367 | 367 | // we have a response from the docblock ( @response ) |
| 368 | 368 | $response = $docblockResponse; |
| 369 | 369 | } |
| 370 | - if (! $response && ($transformerResponse = $this->getTransformerResponse($annotationTags))) { |
|
| 370 | + if (!$response && ($transformerResponse = $this->getTransformerResponse($annotationTags))) { |
|
| 371 | 371 | // we have a transformer response from the docblock ( @transformer || @transformercollection ) |
| 372 | 372 | $response = $transformerResponse; |
| 373 | 373 | } |
@@ -15,17 +15,17 @@ |
||
| 15 | 15 | */ |
| 16 | 16 | public function boot() |
| 17 | 17 | { |
| 18 | - $this->loadViewsFrom(__DIR__.'/../resources/views/', 'apidoc'); |
|
| 18 | + $this->loadViewsFrom(__DIR__ . '/../resources/views/', 'apidoc'); |
|
| 19 | 19 | |
| 20 | 20 | $this->publishes([ |
| 21 | - __DIR__.'/../resources/views' => app()->basePath().'/resources/views/vendor/apidoc', |
|
| 21 | + __DIR__ . '/../resources/views' => app()->basePath() . '/resources/views/vendor/apidoc', |
|
| 22 | 22 | ], 'views'); |
| 23 | 23 | |
| 24 | 24 | $this->publishes([ |
| 25 | - __DIR__.'/../config/apidoc.php' => config_path('apidoc.php'), |
|
| 25 | + __DIR__ . '/../config/apidoc.php' => config_path('apidoc.php'), |
|
| 26 | 26 | ], 'config'); |
| 27 | 27 | |
| 28 | - $this->mergeConfigFrom(__DIR__.'/../config/apidoc.php', 'apidoc'); |
|
| 28 | + $this->mergeConfigFrom(__DIR__ . '/../config/apidoc.php', 'apidoc'); |
|
| 29 | 29 | |
| 30 | 30 | if ($this->app->runningInConsole()) { |
| 31 | 31 | $this->commands([ |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | |
| 59 | 59 | $parsedRoutes = $this->processRoutes($generator, $routes); |
| 60 | 60 | $parsedRoutes = collect($parsedRoutes)->groupBy('resource') |
| 61 | - ->sort(function ($a, $b) { |
|
| 61 | + ->sort(function($a, $b) { |
|
| 62 | 62 | return strcmp($a->first()['resource'], $b->first()['resource']); |
| 63 | 63 | }); |
| 64 | 64 | |
@@ -73,17 +73,17 @@ discard block |
||
| 73 | 73 | private function writeMarkdown($parsedRoutes) |
| 74 | 74 | { |
| 75 | 75 | $outputPath = config('apidoc.output'); |
| 76 | - $targetFile = $outputPath.DIRECTORY_SEPARATOR.'source'.DIRECTORY_SEPARATOR.'index.md'; |
|
| 77 | - $compareFile = $outputPath.DIRECTORY_SEPARATOR.'source'.DIRECTORY_SEPARATOR.'.compare.md'; |
|
| 78 | - $prependFile = $outputPath.DIRECTORY_SEPARATOR.'source'.DIRECTORY_SEPARATOR.'prepend.md'; |
|
| 79 | - $appendFile = $outputPath.DIRECTORY_SEPARATOR.'source'.DIRECTORY_SEPARATOR.'append.md'; |
|
| 76 | + $targetFile = $outputPath . DIRECTORY_SEPARATOR . 'source' . DIRECTORY_SEPARATOR . 'index.md'; |
|
| 77 | + $compareFile = $outputPath . DIRECTORY_SEPARATOR . 'source' . DIRECTORY_SEPARATOR . '.compare.md'; |
|
| 78 | + $prependFile = $outputPath . DIRECTORY_SEPARATOR . 'source' . DIRECTORY_SEPARATOR . 'prepend.md'; |
|
| 79 | + $appendFile = $outputPath . DIRECTORY_SEPARATOR . 'source' . DIRECTORY_SEPARATOR . 'append.md'; |
|
| 80 | 80 | |
| 81 | 81 | $infoText = view('apidoc::partials.info') |
| 82 | 82 | ->with('outputPath', ltrim($outputPath, 'public/')) |
| 83 | 83 | ->with('showPostmanCollectionButton', config('apidoc.postman')); |
| 84 | 84 | |
| 85 | - $parsedRouteOutput = $parsedRoutes->map(function ($routeGroup) { |
|
| 86 | - return $routeGroup->map(function ($route) { |
|
| 85 | + $parsedRouteOutput = $parsedRoutes->map(function($routeGroup) { |
|
| 86 | + return $routeGroup->map(function($route) { |
|
| 87 | 87 | $route['output'] = (string) view('apidoc::partials.route')->with('parsedRoute', $route)->render(); |
| 88 | 88 | |
| 89 | 89 | return $route; |
@@ -103,16 +103,16 @@ discard block |
||
| 103 | 103 | $frontmatter = trim($generatedFrontmatter[1], "\n"); |
| 104 | 104 | } |
| 105 | 105 | |
| 106 | - $parsedRouteOutput->transform(function ($routeGroup) use ($generatedDocumentation, $compareDocumentation) { |
|
| 107 | - return $routeGroup->transform(function ($route) use ($generatedDocumentation, $compareDocumentation) { |
|
| 108 | - if (preg_match('/<!-- START_'.$route['id'].' -->(.*)<!-- END_'.$route['id'].' -->/is', $generatedDocumentation, $existingRouteDoc)) { |
|
| 109 | - $routeDocumentationChanged = (preg_match('/<!-- START_'.$route['id'].' -->(.*)<!-- END_'.$route['id'].' -->/is', $compareDocumentation, $lastDocWeGeneratedForThisRoute) && $lastDocWeGeneratedForThisRoute[1] !== $existingRouteDoc[1]); |
|
| 106 | + $parsedRouteOutput->transform(function($routeGroup) use ($generatedDocumentation, $compareDocumentation) { |
|
| 107 | + return $routeGroup->transform(function($route) use ($generatedDocumentation, $compareDocumentation) { |
|
| 108 | + if (preg_match('/<!-- START_' . $route['id'] . ' -->(.*)<!-- END_' . $route['id'] . ' -->/is', $generatedDocumentation, $existingRouteDoc)) { |
|
| 109 | + $routeDocumentationChanged = (preg_match('/<!-- START_' . $route['id'] . ' -->(.*)<!-- END_' . $route['id'] . ' -->/is', $compareDocumentation, $lastDocWeGeneratedForThisRoute) && $lastDocWeGeneratedForThisRoute[1] !== $existingRouteDoc[1]); |
|
| 110 | 110 | if ($routeDocumentationChanged === false || $this->option('force')) { |
| 111 | 111 | if ($routeDocumentationChanged) { |
| 112 | - $this->warn('Discarded manual changes for route ['.implode(',', $route['methods']).'] '.$route['uri']); |
|
| 112 | + $this->warn('Discarded manual changes for route [' . implode(',', $route['methods']) . '] ' . $route['uri']); |
|
| 113 | 113 | } |
| 114 | 114 | } else { |
| 115 | - $this->warn('Skipping modified route ['.implode(',', $route['methods']).'] '.$route['uri']); |
|
| 115 | + $this->warn('Skipping modified route [' . implode(',', $route['methods']) . '] ' . $route['uri']); |
|
| 116 | 116 | $route['modified_output'] = $existingRouteDoc[0]; |
| 117 | 117 | } |
| 118 | 118 | } |
@@ -123,9 +123,9 @@ discard block |
||
| 123 | 123 | } |
| 124 | 124 | |
| 125 | 125 | $prependFileContents = file_exists($prependFile) |
| 126 | - ? file_get_contents($prependFile)."\n" : ''; |
|
| 126 | + ? file_get_contents($prependFile) . "\n" : ''; |
|
| 127 | 127 | $appendFileContents = file_exists($appendFile) |
| 128 | - ? "\n".file_get_contents($appendFile) : ''; |
|
| 128 | + ? "\n" . file_get_contents($appendFile) : ''; |
|
| 129 | 129 | |
| 130 | 130 | $documentarian = new Documentarian(); |
| 131 | 131 | |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | ->with('showPostmanCollectionButton', config('apidoc.postman')) |
| 140 | 140 | ->with('parsedRoutes', $parsedRouteOutput); |
| 141 | 141 | |
| 142 | - if (! is_dir($outputPath)) { |
|
| 142 | + if (!is_dir($outputPath)) { |
|
| 143 | 143 | $documentarian->create($outputPath); |
| 144 | 144 | } |
| 145 | 145 | |
@@ -159,18 +159,18 @@ discard block |
||
| 159 | 159 | |
| 160 | 160 | file_put_contents($compareFile, $compareMarkdown); |
| 161 | 161 | |
| 162 | - $this->info('Wrote index.md to: '.$outputPath); |
|
| 162 | + $this->info('Wrote index.md to: ' . $outputPath); |
|
| 163 | 163 | |
| 164 | 164 | $this->info('Generating API HTML code'); |
| 165 | 165 | |
| 166 | 166 | $documentarian->generate($outputPath); |
| 167 | 167 | |
| 168 | - $this->info('Wrote HTML documentation to: '.$outputPath.'/index.html'); |
|
| 168 | + $this->info('Wrote HTML documentation to: ' . $outputPath . '/index.html'); |
|
| 169 | 169 | |
| 170 | 170 | if (config('apidoc.postman')) { |
| 171 | 171 | $this->info('Generating Postman collection'); |
| 172 | 172 | |
| 173 | - file_put_contents($outputPath.DIRECTORY_SEPARATOR.'collection.json', $this->generatePostmanCollection($parsedRoutes)); |
|
| 173 | + file_put_contents($outputPath . DIRECTORY_SEPARATOR . 'collection.json', $this->generatePostmanCollection($parsedRoutes)); |
|
| 174 | 174 | } |
| 175 | 175 | } |
| 176 | 176 | |
@@ -188,9 +188,9 @@ discard block |
||
| 188 | 188 | /** @var Route $route */ |
| 189 | 189 | if ($this->isValidRoute($route) && $this->isRouteVisibleForDocumentation($route->getAction()['uses'])) { |
| 190 | 190 | $parsedRoutes[] = $generator->processRoute($route) + $routeItem['apply']; |
| 191 | - $this->info('Processed route: ['.implode(',', $generator->getMethods($route)).'] '.$generator->getUri($route)); |
|
| 191 | + $this->info('Processed route: [' . implode(',', $generator->getMethods($route)) . '] ' . $generator->getUri($route)); |
|
| 192 | 192 | } else { |
| 193 | - $this->warn('Skipping route: ['.implode(',', $generator->getMethods($route)).'] '.$generator->getUri($route)); |
|
| 193 | + $this->warn('Skipping route: [' . implode(',', $generator->getMethods($route)) . '] ' . $generator->getUri($route)); |
|
| 194 | 194 | } |
| 195 | 195 | } |
| 196 | 196 | |
@@ -204,7 +204,7 @@ discard block |
||
| 204 | 204 | */ |
| 205 | 205 | private function isValidRoute(Route $route) |
| 206 | 206 | { |
| 207 | - return ! is_callable($route->getAction()['uses']) && ! is_null($route->getAction()['uses']); |
|
| 207 | + return !is_callable($route->getAction()['uses']) && !is_null($route->getAction()['uses']); |
|
| 208 | 208 | } |
| 209 | 209 | |
| 210 | 210 | /** |
@@ -221,7 +221,7 @@ discard block |
||
| 221 | 221 | $phpdoc = new DocBlock($comment); |
| 222 | 222 | |
| 223 | 223 | return collect($phpdoc->getTags()) |
| 224 | - ->filter(function ($tag) use ($route) { |
|
| 224 | + ->filter(function($tag) use ($route) { |
|
| 225 | 225 | return $tag->getName() === 'hideFromAPIDocumentation'; |
| 226 | 226 | }) |
| 227 | 227 | ->isEmpty(); |