From 2b387e80f27db78e777a3fd23378576163569c15 Mon Sep 17 00:00:00 2001 From: Saleh Saeed Date: Mon, 1 Feb 2021 23:34:02 +0100 Subject: [PATCH] Fix styleci --- Controller/YamlDocumentationController.php | 3 +-- Tests/Functional/SwaggerUiTest.php | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Controller/YamlDocumentationController.php b/Controller/YamlDocumentationController.php index 62be3ad..7557fc8 100644 --- a/Controller/YamlDocumentationController.php +++ b/Controller/YamlDocumentationController.php @@ -17,7 +17,6 @@ use Psr\Container\ContainerInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; -use Symfony\Component\Yaml\Yaml; final class YamlDocumentationController { @@ -42,7 +41,7 @@ final class YamlDocumentationController } return new Response($spec->toYaml(), 200, [ - 'Content-Type' => 'text/x-yaml' + 'Content-Type' => 'text/x-yaml', ]); } } diff --git a/Tests/Functional/SwaggerUiTest.php b/Tests/Functional/SwaggerUiTest.php index ddc9129..01dc4a0 100644 --- a/Tests/Functional/SwaggerUiTest.php +++ b/Tests/Functional/SwaggerUiTest.php @@ -13,7 +13,6 @@ namespace Nelmio\ApiDocBundle\Tests\Functional; use OpenApi\Annotations\Server; use Symfony\Bundle\FrameworkBundle\KernelBrowser; -use Symfony\Component\Yaml\Yaml; class SwaggerUiTest extends WebTestCase {