mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-09 02:59:27 +03:00
Fix CS
This commit is contained in:
parent
c37d615071
commit
6ff6f2b345
2
.php_cs
2
.php_cs
@ -21,7 +21,7 @@ HeaderCommentFixer::setHeader($header);
|
|||||||
|
|
||||||
return Config::create()
|
return Config::create()
|
||||||
->level(FixerInterface::SYMFONY_LEVEL)
|
->level(FixerInterface::SYMFONY_LEVEL)
|
||||||
->fixers(array('header_comment'))
|
->fixers(['header_comment', 'short_array_syntax'])
|
||||||
->finder($finder)
|
->finder($finder)
|
||||||
->setUsingCache(true)
|
->setUsingCache(true)
|
||||||
;
|
;
|
||||||
|
9
.styleci.yml
Normal file
9
.styleci.yml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
preset: symfony
|
||||||
|
|
||||||
|
enabled:
|
||||||
|
- newline_after_open_tag
|
||||||
|
- ordered_use
|
||||||
|
- short_array_syntax
|
||||||
|
|
||||||
|
disabled:
|
||||||
|
- unalign_equals
|
@ -22,7 +22,6 @@ class ApiPlatformDescriber extends ExternalDocDescriber
|
|||||||
public function __construct(Documentation $documentation, DocumentationNormalizer $normalizer, bool $overwrite = false)
|
public function __construct(Documentation $documentation, DocumentationNormalizer $normalizer, bool $overwrite = false)
|
||||||
{
|
{
|
||||||
parent::__construct(function () use ($documentation, $normalizer) {
|
parent::__construct(function () use ($documentation, $normalizer) {
|
||||||
var_dump($normalizer->normalize($documentation));
|
|
||||||
return $normalizer->normalize($documentation);
|
return $normalizer->normalize($documentation);
|
||||||
}, $overwrite);
|
}, $overwrite);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user