Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
anis
anis-server
Commits
b314077e
Commit
b314077e
authored
Dec 19, 2019
by
François Agneray
Browse files
Fixed bug: phpcs
parent
4c5e4ef8
Changes
2
Show whitespace changes
Inline
Side-by-side
src/Action/SearchAction.php
View file @
b314077e
...
@@ -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
;
...
...
tests/Middleware/CorsMiddlewareTest.php
View file @
b314077e
...
@@ -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
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment