@@ -42,15 +42,15 @@ |
||
42 | 42 | |
43 | 43 | $documentarian = new Documentarian(); |
44 | 44 | |
45 | - if (! is_dir($outputPath)) { |
|
46 | - $this->error('There is no existing documentation available at '.$outputPath.'.'); |
|
45 | + if (!is_dir($outputPath)) { |
|
46 | + $this->error('There is no existing documentation available at ' . $outputPath . '.'); |
|
47 | 47 | |
48 | 48 | return false; |
49 | 49 | } |
50 | - $this->info('Rebuilding API HTML code from '.$outputPath.'/source/index.md'); |
|
50 | + $this->info('Rebuilding API HTML code from ' . $outputPath . '/source/index.md'); |
|
51 | 51 | |
52 | 52 | $documentarian->generate($outputPath); |
53 | 53 | |
54 | - $this->info('Wrote HTML documentation to: '.$outputPath.'/index.html'); |
|
54 | + $this->info('Wrote HTML documentation to: ' . $outputPath . '/index.html'); |
|
55 | 55 | } |
56 | 56 | } |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | public function __invoke(Route $route, array $tags, array $routeProps) |
16 | 16 | { |
17 | 17 | $rulesToApply = $routeProps['rules']['response_calls'] ?? []; |
18 | - if (! $this->shouldMakeApiCall($route, $rulesToApply)) { |
|
18 | + if (!$this->shouldMakeApiCall($route, $rulesToApply)) { |
|
19 | 19 | return; |
20 | 20 | } |
21 | 21 | |
@@ -124,14 +124,14 @@ discard block |
||
124 | 124 | // set URL and query parameters |
125 | 125 | $uri = $request->getRequestUri(); |
126 | 126 | $query = $request->getQueryString(); |
127 | - if (! empty($query)) { |
|
127 | + if (!empty($query)) { |
|
128 | 128 | $uri .= "?$query"; |
129 | 129 | } |
130 | 130 | $response = call_user_func_array([$dispatcher, strtolower($request->method())], [$uri]); |
131 | 131 | |
132 | 132 | // the response from the Dingo dispatcher is the 'raw' response from the controller, |
133 | 133 | // so we have to ensure it's JSON first |
134 | - if (! $response instanceof Response) { |
|
134 | + if (!$response instanceof Response) { |
|
135 | 135 | $response = response()->json($response); |
136 | 136 | } |
137 | 137 | |
@@ -238,8 +238,8 @@ discard block |
||
238 | 238 | $prefix = 'HTTP_'; |
239 | 239 | foreach ($headers as $name => $value) { |
240 | 240 | $name = strtr(strtoupper($name), '-', '_'); |
241 | - if (! starts_with($name, $prefix) && $name !== 'CONTENT_TYPE') { |
|
242 | - $name = $prefix.$name; |
|
241 | + if (!starts_with($name, $prefix) && $name !== 'CONTENT_TYPE') { |
|
242 | + $name = $prefix . $name; |
|
243 | 243 | } |
244 | 244 | $server[$name] = $value; |
245 | 245 | } |
@@ -50,14 +50,14 @@ discard block |
||
50 | 50 | |
51 | 51 | private function getAllRoutes(bool $usingDingoRouter, array $versions = []) |
52 | 52 | { |
53 | - if (! $usingDingoRouter) { |
|
53 | + if (!$usingDingoRouter) { |
|
54 | 54 | return RouteFacade::getRoutes(); |
55 | 55 | } |
56 | 56 | |
57 | 57 | $allRouteCollections = app(\Dingo\Api\Routing\Router::class)->getRoutes(); |
58 | 58 | |
59 | 59 | return collect($allRouteCollections) |
60 | - ->flatMap(function (RouteCollection $collection) { |
|
60 | + ->flatMap(function(RouteCollection $collection) { |
|
61 | 61 | return $collection->getRoutes(); |
62 | 62 | })->toArray(); |
63 | 63 | } |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | private function shouldIncludeRoute(Route $route, array $routeRule, array $mustIncludes, bool $usingDingoRouter) |
66 | 66 | { |
67 | 67 | $matchesVersion = $usingDingoRouter |
68 | - ? ! empty(array_intersect($route->versions(), $routeRule['match']['versions'] ?? [])) |
|
68 | + ? !empty(array_intersect($route->versions(), $routeRule['match']['versions'] ?? [])) |
|
69 | 69 | : true; |
70 | 70 | |
71 | 71 | return str_is($mustIncludes, $route->getName()) |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | protected function getDocBlockResponses(array $tags) |
34 | 34 | { |
35 | 35 | $responseTags = array_values( |
36 | - array_filter($tags, function ($tag) { |
|
36 | + array_filter($tags, function($tag) { |
|
37 | 37 | return $tag instanceof Tag && strtolower($tag->getName()) === 'response'; |
38 | 38 | }) |
39 | 39 | ); |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | return; |
43 | 43 | } |
44 | 44 | |
45 | - return array_map(function (Tag $responseTag) { |
|
45 | + return array_map(function(Tag $responseTag) { |
|
46 | 46 | preg_match('/^(\d{3})?\s?([\s\S]*)$/', $responseTag->getContent(), $result); |
47 | 47 | |
48 | 48 | $status = $result[1] ?: 200; |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | { |
35 | 35 | // avoid "holes" in the keys of the filtered array, by using array_values on the filtered array |
36 | 36 | $responseFileTags = array_values( |
37 | - array_filter($tags, function ($tag) { |
|
37 | + array_filter($tags, function($tag) { |
|
38 | 38 | return $tag instanceof Tag && strtolower($tag->getName()) === 'responsefile'; |
39 | 39 | }) |
40 | 40 | ); |
@@ -43,11 +43,11 @@ discard block |
||
43 | 43 | return; |
44 | 44 | } |
45 | 45 | |
46 | - return array_map(function (Tag $responseFileTag) { |
|
46 | + return array_map(function(Tag $responseFileTag) { |
|
47 | 47 | preg_match('/^(\d{3})?\s?([\S]*[\s]*?)(\{.*\})?$/', $responseFileTag->getContent(), $result); |
48 | 48 | $status = $result[1] ?: 200; |
49 | 49 | $content = $result[2] ? file_get_contents(storage_path(trim($result[2])), true) : '{}'; |
50 | - $json = ! empty($result[3]) ? str_replace("'", '"', $result[3]) : '{}'; |
|
50 | + $json = !empty($result[3]) ? str_replace("'", '"', $result[3]) : '{}'; |
|
51 | 51 | $merged = array_merge(json_decode($content, true), json_decode($json, true)); |
52 | 52 | |
53 | 53 | return new JsonResponse($merged, (int) $status); |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | |
48 | 48 | $fractal = new Manager(); |
49 | 49 | |
50 | - if (! is_null(config('apidoc.fractal.serializer'))) { |
|
50 | + if (!is_null(config('apidoc.fractal.serializer'))) { |
|
51 | 51 | $fractal->setSerializer(app(config('apidoc.fractal.serializer'))); |
52 | 52 | } |
53 | 53 | |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | */ |
80 | 80 | private function getClassToBeTransformed(array $tags, ReflectionMethod $transformerMethod) |
81 | 81 | { |
82 | - $modelTag = array_first(array_filter($tags, function ($tag) { |
|
82 | + $modelTag = array_first(array_filter($tags, function($tag) { |
|
83 | 83 | return ($tag instanceof Tag) && strtolower($tag->getName()) == 'transformermodel'; |
84 | 84 | })); |
85 | 85 | |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | $type = $modelTag->getContent(); |
89 | 89 | } else { |
90 | 90 | $parameter = array_first($transformerMethod->getParameters()); |
91 | - if ($parameter->hasType() && ! $parameter->getType()->isBuiltin() && class_exists((string) $parameter->getType())) { |
|
91 | + if ($parameter->hasType() && !$parameter->getType()->isBuiltin() && class_exists((string) $parameter->getType())) { |
|
92 | 92 | // ladies and gentlemen, we have a type! |
93 | 93 | $type = (string) $parameter->getType(); |
94 | 94 | } |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | private function getTransformerTag(array $tags) |
134 | 134 | { |
135 | 135 | $transFormerTags = array_values( |
136 | - array_filter($tags, function ($tag) { |
|
136 | + array_filter($tags, function($tag) { |
|
137 | 137 | return ($tag instanceof Tag) && in_array(strtolower($tag->getName()), ['transformer', 'transformercollection']); |
138 | 138 | }) |
139 | 139 | ); |
@@ -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 | ], 'apidoc-views'); |
23 | 23 | |
24 | 24 | $this->publishes([ |
25 | - __DIR__.'/../config/apidoc.php' => app()->basePath().'/config/apidoc.php', |
|
25 | + __DIR__ . '/../config/apidoc.php' => app()->basePath() . '/config/apidoc.php', |
|
26 | 26 | ], 'apidoc-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 | |
60 | 60 | $parsedRoute = [ |
61 | - 'id' => md5($this->getUri($route).':'.implode($this->getMethods($route))), |
|
61 | + 'id' => md5($this->getUri($route) . ':' . implode($this->getMethods($route))), |
|
62 | 62 | 'group' => $routeGroup, |
63 | 63 | 'title' => $docBlock['short'], |
64 | 64 | 'description' => $docBlock['long'], |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | 'queryParameters' => $queryParameters, |
70 | 70 | 'authenticated' => $this->getAuthStatusFromDocBlock($docBlock['tags']), |
71 | 71 | 'response' => $content, |
72 | - 'showresponse' => ! empty($content), |
|
72 | + 'showresponse' => !empty($content), |
|
73 | 73 | ]; |
74 | 74 | $parsedRoute['headers'] = $rulesToApply['headers'] ?? []; |
75 | 75 | |
@@ -84,10 +84,10 @@ discard block |
||
84 | 84 | protected function getBodyParametersFromDocBlock(array $tags) |
85 | 85 | { |
86 | 86 | $parameters = collect($tags) |
87 | - ->filter(function ($tag) { |
|
87 | + ->filter(function($tag) { |
|
88 | 88 | return $tag instanceof Tag && $tag->getName() === 'bodyParam'; |
89 | 89 | }) |
90 | - ->mapWithKeys(function ($tag) { |
|
90 | + ->mapWithKeys(function($tag) { |
|
91 | 91 | preg_match('/(.+?)\s+(.+?)\s+(required\s+)?(.*)/', $tag->getContent(), $content); |
92 | 92 | if (empty($content)) { |
93 | 93 | // this means only name and type were supplied |
@@ -122,10 +122,10 @@ discard block |
||
122 | 122 | protected function getQueryParametersFromDocBlock(array $tags) |
123 | 123 | { |
124 | 124 | $parameters = collect($tags) |
125 | - ->filter(function ($tag) { |
|
125 | + ->filter(function($tag) { |
|
126 | 126 | return $tag instanceof Tag && $tag->getName() === 'queryParam'; |
127 | 127 | }) |
128 | - ->mapWithKeys(function ($tag) { |
|
128 | + ->mapWithKeys(function($tag) { |
|
129 | 129 | preg_match('/(.+?)\s+(required\s+)?(.*)/', $tag->getContent(), $content); |
130 | 130 | if (empty($content)) { |
131 | 131 | // this means only name was supplied |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | protected function getAuthStatusFromDocBlock(array $tags) |
164 | 164 | { |
165 | 165 | $authTag = collect($tags) |
166 | - ->first(function ($tag) { |
|
166 | + ->first(function($tag) { |
|
167 | 167 | return $tag instanceof Tag && strtolower($tag->getName()) === 'authenticated'; |
168 | 168 | }); |
169 | 169 | |
@@ -234,25 +234,25 @@ discard block |
||
234 | 234 | { |
235 | 235 | $faker = Factory::create(); |
236 | 236 | $fakes = [ |
237 | - 'integer' => function () { |
|
237 | + 'integer' => function() { |
|
238 | 238 | return rand(1, 20); |
239 | 239 | }, |
240 | - 'number' => function () use ($faker) { |
|
240 | + 'number' => function() use ($faker) { |
|
241 | 241 | return $faker->randomFloat(); |
242 | 242 | }, |
243 | - 'float' => function () use ($faker) { |
|
243 | + 'float' => function() use ($faker) { |
|
244 | 244 | return $faker->randomFloat(); |
245 | 245 | }, |
246 | - 'boolean' => function () use ($faker) { |
|
246 | + 'boolean' => function() use ($faker) { |
|
247 | 247 | return $faker->boolean(); |
248 | 248 | }, |
249 | - 'string' => function () use ($faker) { |
|
249 | + 'string' => function() use ($faker) { |
|
250 | 250 | return str_random(); |
251 | 251 | }, |
252 | - 'array' => function () { |
|
252 | + 'array' => function() { |
|
253 | 253 | return []; |
254 | 254 | }, |
255 | - 'object' => function () { |
|
255 | + 'object' => function() { |
|
256 | 256 | return new \stdClass; |
257 | 257 | }, |
258 | 258 | ]; |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | $generator = new Generator(); |
57 | 57 | $parsedRoutes = $this->processRoutes($generator, $routes); |
58 | 58 | $parsedRoutes = collect($parsedRoutes)->groupBy('group') |
59 | - ->sortBy(static function ($group) { |
|
59 | + ->sortBy(static function($group) { |
|
60 | 60 | /* @var $group Collection */ |
61 | 61 | return $group->first()['group']; |
62 | 62 | }, SORT_NATURAL); |
@@ -72,17 +72,17 @@ discard block |
||
72 | 72 | private function writeMarkdown($parsedRoutes) |
73 | 73 | { |
74 | 74 | $outputPath = config('apidoc.output'); |
75 | - $targetFile = $outputPath.DIRECTORY_SEPARATOR.'source'.DIRECTORY_SEPARATOR.'index.md'; |
|
76 | - $compareFile = $outputPath.DIRECTORY_SEPARATOR.'source'.DIRECTORY_SEPARATOR.'.compare.md'; |
|
77 | - $prependFile = $outputPath.DIRECTORY_SEPARATOR.'source'.DIRECTORY_SEPARATOR.'prepend.md'; |
|
78 | - $appendFile = $outputPath.DIRECTORY_SEPARATOR.'source'.DIRECTORY_SEPARATOR.'append.md'; |
|
75 | + $targetFile = $outputPath . DIRECTORY_SEPARATOR . 'source' . DIRECTORY_SEPARATOR . 'index.md'; |
|
76 | + $compareFile = $outputPath . DIRECTORY_SEPARATOR . 'source' . DIRECTORY_SEPARATOR . '.compare.md'; |
|
77 | + $prependFile = $outputPath . DIRECTORY_SEPARATOR . 'source' . DIRECTORY_SEPARATOR . 'prepend.md'; |
|
78 | + $appendFile = $outputPath . DIRECTORY_SEPARATOR . 'source' . DIRECTORY_SEPARATOR . 'append.md'; |
|
79 | 79 | |
80 | 80 | $infoText = view('apidoc::partials.info') |
81 | 81 | ->with('outputPath', ltrim($outputPath, 'public/')) |
82 | 82 | ->with('showPostmanCollectionButton', $this->shouldGeneratePostmanCollection()); |
83 | 83 | |
84 | - $parsedRouteOutput = $parsedRoutes->map(function ($routeGroup) { |
|
85 | - return $routeGroup->map(function ($route) { |
|
84 | + $parsedRouteOutput = $parsedRoutes->map(function($routeGroup) { |
|
85 | + return $routeGroup->map(function($route) { |
|
86 | 86 | if (count($route['cleanBodyParameters'])) { |
87 | 87 | $route['headers']['Content-Type'] = 'application/json'; |
88 | 88 | } |
@@ -105,16 +105,16 @@ discard block |
||
105 | 105 | $frontmatter = trim($generatedFrontmatter[1], "\n"); |
106 | 106 | } |
107 | 107 | |
108 | - $parsedRouteOutput->transform(function ($routeGroup) use ($generatedDocumentation, $compareDocumentation) { |
|
109 | - return $routeGroup->transform(function ($route) use ($generatedDocumentation, $compareDocumentation) { |
|
110 | - if (preg_match('/<!-- START_'.$route['id'].' -->(.*)<!-- END_'.$route['id'].' -->/is', $generatedDocumentation, $existingRouteDoc)) { |
|
111 | - $routeDocumentationChanged = (preg_match('/<!-- START_'.$route['id'].' -->(.*)<!-- END_'.$route['id'].' -->/is', $compareDocumentation, $lastDocWeGeneratedForThisRoute) && $lastDocWeGeneratedForThisRoute[1] !== $existingRouteDoc[1]); |
|
108 | + $parsedRouteOutput->transform(function($routeGroup) use ($generatedDocumentation, $compareDocumentation) { |
|
109 | + return $routeGroup->transform(function($route) use ($generatedDocumentation, $compareDocumentation) { |
|
110 | + if (preg_match('/<!-- START_' . $route['id'] . ' -->(.*)<!-- END_' . $route['id'] . ' -->/is', $generatedDocumentation, $existingRouteDoc)) { |
|
111 | + $routeDocumentationChanged = (preg_match('/<!-- START_' . $route['id'] . ' -->(.*)<!-- END_' . $route['id'] . ' -->/is', $compareDocumentation, $lastDocWeGeneratedForThisRoute) && $lastDocWeGeneratedForThisRoute[1] !== $existingRouteDoc[1]); |
|
112 | 112 | if ($routeDocumentationChanged === false || $this->option('force')) { |
113 | 113 | if ($routeDocumentationChanged) { |
114 | - $this->warn('Discarded manual changes for route ['.implode(',', $route['methods']).'] '.$route['uri']); |
|
114 | + $this->warn('Discarded manual changes for route [' . implode(',', $route['methods']) . '] ' . $route['uri']); |
|
115 | 115 | } |
116 | 116 | } else { |
117 | - $this->warn('Skipping modified route ['.implode(',', $route['methods']).'] '.$route['uri']); |
|
117 | + $this->warn('Skipping modified route [' . implode(',', $route['methods']) . '] ' . $route['uri']); |
|
118 | 118 | $route['modified_output'] = $existingRouteDoc[0]; |
119 | 119 | } |
120 | 120 | } |
@@ -125,9 +125,9 @@ discard block |
||
125 | 125 | } |
126 | 126 | |
127 | 127 | $prependFileContents = file_exists($prependFile) |
128 | - ? file_get_contents($prependFile)."\n" : ''; |
|
128 | + ? file_get_contents($prependFile) . "\n" : ''; |
|
129 | 129 | $appendFileContents = file_exists($appendFile) |
130 | - ? "\n".file_get_contents($appendFile) : ''; |
|
130 | + ? "\n" . file_get_contents($appendFile) : ''; |
|
131 | 131 | |
132 | 132 | $documentarian = new Documentarian(); |
133 | 133 | |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | ->with('showPostmanCollectionButton', $this->shouldGeneratePostmanCollection()) |
142 | 142 | ->with('parsedRoutes', $parsedRouteOutput); |
143 | 143 | |
144 | - if (! is_dir($outputPath)) { |
|
144 | + if (!is_dir($outputPath)) { |
|
145 | 145 | $documentarian->create($outputPath); |
146 | 146 | } |
147 | 147 | |
@@ -161,24 +161,24 @@ discard block |
||
161 | 161 | |
162 | 162 | file_put_contents($compareFile, $compareMarkdown); |
163 | 163 | |
164 | - $this->info('Wrote index.md to: '.$outputPath); |
|
164 | + $this->info('Wrote index.md to: ' . $outputPath); |
|
165 | 165 | |
166 | 166 | $this->info('Generating API HTML code'); |
167 | 167 | |
168 | 168 | $documentarian->generate($outputPath); |
169 | 169 | |
170 | - $this->info('Wrote HTML documentation to: '.$outputPath.'/index.html'); |
|
170 | + $this->info('Wrote HTML documentation to: ' . $outputPath . '/index.html'); |
|
171 | 171 | |
172 | 172 | if ($this->shouldGeneratePostmanCollection()) { |
173 | 173 | $this->info('Generating Postman collection'); |
174 | 174 | |
175 | - file_put_contents($outputPath.DIRECTORY_SEPARATOR.'collection.json', $this->generatePostmanCollection($parsedRoutes)); |
|
175 | + file_put_contents($outputPath . DIRECTORY_SEPARATOR . 'collection.json', $this->generatePostmanCollection($parsedRoutes)); |
|
176 | 176 | } |
177 | 177 | |
178 | 178 | if ($logo = config('apidoc.logo')) { |
179 | 179 | copy( |
180 | 180 | $logo, |
181 | - $outputPath.DIRECTORY_SEPARATOR.'images'.DIRECTORY_SEPARATOR.'logo.png' |
|
181 | + $outputPath . DIRECTORY_SEPARATOR . 'images' . DIRECTORY_SEPARATOR . 'logo.png' |
|
182 | 182 | ); |
183 | 183 | } |
184 | 184 | } |
@@ -197,9 +197,9 @@ discard block |
||
197 | 197 | /** @var Route $route */ |
198 | 198 | if ($this->isValidRoute($route) && $this->isRouteVisibleForDocumentation($route->getAction()['uses'])) { |
199 | 199 | $parsedRoutes[] = $generator->processRoute($route, $routeItem['apply']); |
200 | - $this->info('Processed route: ['.implode(',', $generator->getMethods($route)).'] '.$generator->getUri($route)); |
|
200 | + $this->info('Processed route: [' . implode(',', $generator->getMethods($route)) . '] ' . $generator->getUri($route)); |
|
201 | 201 | } else { |
202 | - $this->warn('Skipping route: ['.implode(',', $generator->getMethods($route)).'] '.$generator->getUri($route)); |
|
202 | + $this->warn('Skipping route: [' . implode(',', $generator->getMethods($route)) . '] ' . $generator->getUri($route)); |
|
203 | 203 | } |
204 | 204 | } |
205 | 205 | |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | */ |
214 | 214 | private function isValidRoute(Route $route) |
215 | 215 | { |
216 | - return ! is_callable($route->getAction()['uses']) && ! is_null($route->getAction()['uses']); |
|
216 | + return !is_callable($route->getAction()['uses']) && !is_null($route->getAction()['uses']); |
|
217 | 217 | } |
218 | 218 | |
219 | 219 | /** |
@@ -228,7 +228,7 @@ discard block |
||
228 | 228 | list($class, $method) = explode('@', $route); |
229 | 229 | $reflection = new ReflectionClass($class); |
230 | 230 | |
231 | - if (! $reflection->hasMethod($method)) { |
|
231 | + if (!$reflection->hasMethod($method)) { |
|
232 | 232 | return false; |
233 | 233 | } |
234 | 234 | |
@@ -238,7 +238,7 @@ discard block |
||
238 | 238 | $phpdoc = new DocBlock($comment); |
239 | 239 | |
240 | 240 | return collect($phpdoc->getTags()) |
241 | - ->filter(function ($tag) use ($route) { |
|
241 | + ->filter(function($tag) use ($route) { |
|
242 | 242 | return $tag->getName() === 'hideFromAPIDocumentation'; |
243 | 243 | }) |
244 | 244 | ->isEmpty(); |