From 6bce4e0a8a130b95bbbd597924e70b466b892bee Mon Sep 17 00:00:00 2001 From: bifidokk Date: Fri, 27 Jul 2018 09:59:45 +0500 Subject: [PATCH] Fix cs --- Tests/Functional/TestKernel.php | 88 ++++++++++++++------------------- 1 file changed, 38 insertions(+), 50 deletions(-) diff --git a/Tests/Functional/TestKernel.php b/Tests/Functional/TestKernel.php index 0590cf9..58d6bc8 100644 --- a/Tests/Functional/TestKernel.php +++ b/Tests/Functional/TestKernel.php @@ -118,64 +118,52 @@ class TestKernel extends Kernel // Filter routes $c->loadFromExtension('nelmio_api_doc', [ 'areas' => [ - 'default' => ['path_patterns' => ['^/api(?!/admin)'], 'host_patterns' => ['^api\.'], 'documentation' => [ - 'info' => [ - 'title' => 'My Test App', - ], - 'definitions' => [ - 'Test' => [ - 'type' => 'string', + 'default' => [ + 'path_patterns' => ['^/api(?!/admin)'], + 'host_patterns' => ['^api\.'], + 'documentation' => [ + 'info' => [ + 'title' => 'My Test App', + ], + 'definitions' => [ + 'Test' => [ + 'type' => 'string', + ], + ], + 'parameters' => [ + 'test' => [ + 'name' => 'id', + 'in' => 'path', + 'required' => true, + ], ], ], - 'parameters' => [ - 'test' => [ - 'name' => 'id', - 'in' => 'path', - 'required' => true, + ], + 'test' => [ + 'path_patterns' => ['^/test'], + 'host_patterns' => ['^api-test\.'], + 'documentation' => [ + 'info' => [ + 'title' => 'My Test App', + ], + 'definitions' => [ + 'Test' => [ + 'type' => 'string', + ], + ], + 'parameters' => [ + 'test' => [ + 'name' => 'id', + 'in' => 'path', + 'required' => true, + ], ], ], - ]], - 'test' => ['path_patterns' => ['^/test'], 'host_patterns' => ['^api-test\.'], 'documentation' => [ - 'info' => [ - 'title' => 'My Test App', - ], - 'definitions' => [ - 'Test' => [ - 'type' => 'string', - ], - ], - 'parameters' => [ - 'test' => [ - 'name' => 'id', - 'in' => 'path', - 'required' => true, - ], - ], - ]], + ], ], ]); } - /* - * 'documentation' => [ - 'info' => [ - 'title' => 'My Test App', - ], - 'definitions' => [ - 'Test' => [ - 'type' => 'string', - ], - ], - 'parameters' => [ - 'test' => [ - 'name' => 'id', - 'in' => 'path', - 'required' => true, - ], - ], - ], - */ - /** * {@inheritdoc} */