Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Aug 28, 2024
1 parent 84639e8 commit 52af8f6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions config/l5-swagger.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,21 +103,21 @@

'scanOptions' => [
/**
* Configuration for default processors. Allows to pass processors configuration to swagger-php
* Configuration for default processors. Allows to pass processors configuration to swagger-php.
*
* @link https://zircote.github.io/swagger-php/reference/processors.html
*/
'default_processors_configuration' => [
/** Example */
/**
'operationId.hash' => true,
'pathFilter' => [
'tags' => [
'/pets/',
'/store/',
],
],
*/
/** Example */
/**
* 'operationId.hash' => true,
* 'pathFilter' => [
* 'tags' => [
* '/pets/',
* '/store/',
* ],
* ],.
*/
],

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ protected function createOpenApiGenerator(): OpenApiGenerator

// Only from zircote/swagger-php 4
if (
!empty($this->scanOptions['default_processors_configuration'])
! empty($this->scanOptions['default_processors_configuration'])
&& is_array($this->scanOptions['default_processors_configuration'])
&& method_exists($generator, 'setConfig')
) {
Expand Down

0 comments on commit 52af8f6

Please sign in to comment.