Skip to content

Commit f76ce80

Browse files
authored
Merge pull request #108 from mpociot/analysis-qBP34L
Applied fixes from StyleCI
2 parents f7f8407 + 5f37e0c commit f76ce80

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Mpociot/ApiDoc/Commands/GenerateDocumentation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ private function writeMarkdown($parsedRoutes)
130130
return $routeGroup->transform(function ($route) use ($generatedDocumentation, $compareDocumentation) {
131131
if (preg_match('/<!-- START_'.$route['id'].' -->(.*)<!-- END_'.$route['id'].' -->/is', $generatedDocumentation, $routeMatch)) {
132132
$routeDocumentationChanged = (preg_match('/<!-- START_'.$route['id'].' -->(.*)<!-- END_'.$route['id'].' -->/is', $compareDocumentation, $compareMatch) && $compareMatch[1] !== $routeMatch[1]);
133-
if ($routeDocumentationChanged === false || $this->option('force')) {
133+
if ($routeDocumentationChanged === false || $this->option('force')) {
134134
if ($routeDocumentationChanged) {
135135
$this->warn('Discarded manual changes for route ['.implode(',', $route['methods']).'] '.$route['uri']);
136136
}
@@ -282,7 +282,7 @@ private function processDingoRoutes(AbstractGenerator $generator, $allowedRoutes
282282
if (empty($allowedRoutes) || in_array($route->getName(), $allowedRoutes) || str_is($routePrefix, $route->uri()) || in_array($middleware, $route->middleware())) {
283283
if ($this->isValidRoute($route) && $this->isRouteVisibleForDocumentation($route->getAction()['uses'])) {
284284
$parsedRoutes[] = $generator->processRoute($route, $bindings, $this->option('header'), $withResponse);
285-
$this->info('Processed route: [' . implode(',', $route->getMethods()) . '] ' . $route->uri());
285+
$this->info('Processed route: ['.implode(',', $route->getMethods()).'] '.$route->uri());
286286
} else {
287287
$this->warn('Skipping route: ['.implode(',', $route->getMethods()).'] '.$route->uri());
288288
}

tests/GenerateDocumentationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ protected function getPackageProviders($app)
4343
{
4444
return [
4545
LaravelServiceProvider::class,
46-
ApiDocGeneratorServiceProvider::class
46+
ApiDocGeneratorServiceProvider::class,
4747
];
4848
}
4949

0 commit comments

Comments
 (0)