Skip to content

Commit

Permalink
cs
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkaOnLine committed Aug 29, 2024
1 parent 4f2add0 commit 63de89d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ protected function createOpenApiGenerator(): OpenApiGenerator
// Only from zircote/swagger-php 4
if (! empty($this->scanOptions['default_processors_configuration'])
&& is_array($this->scanOptions['default_processors_configuration'])
&& method_exists($generator, 'setConfig')) {
&& method_exists($generator, 'setConfig')
) {
$generator->setConfig($this->scanOptions['default_processors_configuration']);
}

Expand Down
4 changes: 1 addition & 3 deletions tests/GeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,7 @@ public function canGenerateWithScanOptions(): void
->assertSee('my-default-host.com')
->assertSee('getProjectsList')
->assertSee('operationId')
->assertSee(
"POST::/products::Tests\\\storage\\\annotations\\\OpenApi\\\Products\\\L5SwaggerAnnotationsExampleProducts::getProductsList"
)
->assertSee("POST::/products::Tests\\\storage\\\annotations\\\OpenApi\\\Products\\\L5SwaggerAnnotationsExampleProducts::getProductsList")
->assertDontSee('getClientsList')
->assertStatus(200);
}
Expand Down

0 comments on commit 63de89d

Please sign in to comment.