From e2210473511d142f84cc1328465e43ce928e94a7 Mon Sep 17 00:00:00 2001 From: Guilhem N Date: Thu, 1 Dec 2016 17:25:53 +0100 Subject: [PATCH] Fix CS --- DependencyInjection/Configuration.php | 3 +-- Tests/Describer/RouteDescriberTest.php | 2 +- Tests/Functional/Controller/UndocumentedController.php | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index faa8c70..d53ace7 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -27,14 +27,13 @@ final class Configuration implements ConfigurationInterface ->addDefaultsIfNotSet() ->children() ->arrayNode('path_patterns') - ->example(array('^/api', '^/api(?!/admin)')) + ->example(['^/api', '^/api(?!/admin)']) ->prototype('scalar')->end() ->end() ->end() ->end() ->end(); - return $treeBuilder; } } diff --git a/Tests/Describer/RouteDescriberTest.php b/Tests/Describer/RouteDescriberTest.php index bb97448..8b5b6b0 100644 --- a/Tests/Describer/RouteDescriberTest.php +++ b/Tests/Describer/RouteDescriberTest.php @@ -41,7 +41,7 @@ class RouteDescriberTest extends AbstractDescriberTest new Container(), $this->routes, $this->createMock(ControllerNameParser::class), - [ $this->routeDescriber ] + [$this->routeDescriber] ); } } diff --git a/Tests/Functional/Controller/UndocumentedController.php b/Tests/Functional/Controller/UndocumentedController.php index e0a2c5d..4103db0 100644 --- a/Tests/Functional/Controller/UndocumentedController.php +++ b/Tests/Functional/Controller/UndocumentedController.php @@ -11,7 +11,6 @@ namespace EXSyst\Bundle\ApiDocBundle\Tests\Functional\Controller; -use Nelmio\ApiDocBundle\Annotation\ApiDoc; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class UndocumentedController