From 6ff6f2b3450573c823ee2b04c501938c08645665 Mon Sep 17 00:00:00 2001 From: Ener-Getick Date: Sat, 30 Jul 2016 20:04:03 +0200 Subject: [PATCH] Fix CS --- .php_cs | 2 +- .styleci.yml | 9 +++++++++ Describer/ApiPlatformDescriber.php | 1 - 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 .styleci.yml diff --git a/.php_cs b/.php_cs index 41a7cac..d8a7553 100644 --- a/.php_cs +++ b/.php_cs @@ -21,7 +21,7 @@ HeaderCommentFixer::setHeader($header); return Config::create() ->level(FixerInterface::SYMFONY_LEVEL) - ->fixers(array('header_comment')) + ->fixers(['header_comment', 'short_array_syntax']) ->finder($finder) ->setUsingCache(true) ; diff --git a/.styleci.yml b/.styleci.yml new file mode 100644 index 0000000..6232d56 --- /dev/null +++ b/.styleci.yml @@ -0,0 +1,9 @@ +preset: symfony + +enabled: + - newline_after_open_tag + - ordered_use + - short_array_syntax + +disabled: + - unalign_equals diff --git a/Describer/ApiPlatformDescriber.php b/Describer/ApiPlatformDescriber.php index c98c062..9906e74 100644 --- a/Describer/ApiPlatformDescriber.php +++ b/Describer/ApiPlatformDescriber.php @@ -22,7 +22,6 @@ class ApiPlatformDescriber extends ExternalDocDescriber public function __construct(Documentation $documentation, DocumentationNormalizer $normalizer, bool $overwrite = false) { parent::__construct(function () use ($documentation, $normalizer) { - var_dump($normalizer->normalize($documentation)); return $normalizer->normalize($documentation); }, $overwrite); }