Fix styleci

This commit is contained in:
Saleh Saeed 2021-02-01 23:34:02 +01:00
parent 46ef005787
commit 2b387e80f2
2 changed files with 1 additions and 3 deletions

View File

@ -17,7 +17,6 @@ use Psr\Container\ContainerInterface;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
use Symfony\Component\Yaml\Yaml;
final class YamlDocumentationController final class YamlDocumentationController
{ {
@ -42,7 +41,7 @@ final class YamlDocumentationController
} }
return new Response($spec->toYaml(), 200, [ return new Response($spec->toYaml(), 200, [
'Content-Type' => 'text/x-yaml' 'Content-Type' => 'text/x-yaml',
]); ]);
} }
} }

View File

@ -13,7 +13,6 @@ namespace Nelmio\ApiDocBundle\Tests\Functional;
use OpenApi\Annotations\Server; use OpenApi\Annotations\Server;
use Symfony\Bundle\FrameworkBundle\KernelBrowser; use Symfony\Bundle\FrameworkBundle\KernelBrowser;
use Symfony\Component\Yaml\Yaml;
class SwaggerUiTest extends WebTestCase class SwaggerUiTest extends WebTestCase
{ {