Commit b314077e authored by François Agneray's avatar François Agneray
Browse files

Fixed bug: phpcs

parent 4c5e4ef8
...@@ -42,8 +42,11 @@ final class SearchAction extends AbstractAction ...@@ -42,8 +42,11 @@ final class SearchAction extends AbstractAction
* @param EntityManagerInterface $em Doctrine Entity Manager Interface * @param EntityManagerInterface $em Doctrine Entity Manager Interface
* @param DBALConnectionFactory $connectionFactory Factory used to construct connection to business database * @param DBALConnectionFactory $connectionFactory Factory used to construct connection to business database
*/ */
public function __construct(EntityManagerInterface $em, DBALConnectionFactory $connectionFactory, OperatorFactory $operatorFactory) public function __construct(
{ EntityManagerInterface $em,
DBALConnectionFactory $connectionFactory,
OperatorFactory $operatorFactory
) {
parent::__construct($em); parent::__construct($em);
$this->connectionFactory = $connectionFactory; $this->connectionFactory = $connectionFactory;
$this->operatorFactory = $operatorFactory; $this->operatorFactory = $operatorFactory;
......
...@@ -35,7 +35,10 @@ final class CorsMiddlewareTest extends TestCase ...@@ -35,7 +35,10 @@ final class CorsMiddlewareTest extends TestCase
$corsMiddleware = new \App\Middleware\CorsMiddleware(); $corsMiddleware = new \App\Middleware\CorsMiddleware();
$response = $corsMiddleware->process($request, $requestHandler); $response = $corsMiddleware->process($request, $requestHandler);
$this->assertSame((string) $response->getHeaderLine('Access-Control-Allow-Origin'), '*'); $this->assertSame((string) $response->getHeaderLine('Access-Control-Allow-Origin'), '*');
$this->assertSame('Content-Type, Authorization', (string) $response->getHeaderLine('Access-Control-Allow-Headers')); $this->assertSame(
'Content-Type, Authorization',
(string) $response->getHeaderLine('Access-Control-Allow-Headers')
);
} }
public function testCorsHeadersForGetMethod() public function testCorsHeadersForGetMethod()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment