@@ -15,7 +15,7 @@ |
||
| 15 | 15 | { |
| 16 | 16 | public function testEventListenersAreRegisteredCorrectly(): void |
| 17 | 17 | { |
| 18 | - $container = $this->getContainerForConfig([], function (ContainerBuilder $container) { |
|
| 18 | + $container = $this->getContainerForConfig([], function(ContainerBuilder $container) { |
|
| 19 | 19 | $container->getDefinition('saikootau_api.event.listener.exception_response')->setPublic(true); |
| 20 | 20 | $container->getDefinition('saikootau_api.event.listener.response')->setPublic(true); |
| 21 | 21 | }); |
@@ -6,5 +6,5 @@ |
||
| 6 | 6 | |
| 7 | 7 | AnnotationRegistry::registerAutoloadNamespace( |
| 8 | 8 | 'JMS\Serializer\Annotation', |
| 9 | - [ __DIR__.'/vendor/jms/serializer/src' ] |
|
| 9 | + [__DIR__.'/vendor/jms/serializer/src'] |
|
| 10 | 10 | ); |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | ])); |
| 98 | 98 | $event->getResponse()->willReturn(null); |
| 99 | 99 | $event->getException()->willReturn($this->prophesize(Exception::class)); |
| 100 | - $event->setResponse(Argument::that(function (Response $response) { |
|
| 100 | + $event->setResponse(Argument::that(function(Response $response) { |
|
| 101 | 101 | return Response::HTTP_INTERNAL_SERVER_ERROR === $response->getStatusCode(); |
| 102 | 102 | }))->shouldBeCalled(); |
| 103 | 103 | |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | ])); |
| 122 | 122 | $event->getResponse()->willReturn(null); |
| 123 | 123 | $event->getException()->willReturn(new HttpException(Response::HTTP_NOT_FOUND)); |
| 124 | - $event->setResponse(Argument::that(function (Response $response) { |
|
| 124 | + $event->setResponse(Argument::that(function(Response $response) { |
|
| 125 | 125 | return Response::HTTP_NOT_FOUND === $response->getStatusCode(); |
| 126 | 126 | }))->shouldBeCalled(); |
| 127 | 127 | |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | ])); |
| 149 | 149 | $event->getResponse()->willReturn(null); |
| 150 | 150 | $event->getException()->willReturn($exception); |
| 151 | - $event->setResponse(Argument::that(function (Response $response) { |
|
| 151 | + $event->setResponse(Argument::that(function(Response $response) { |
|
| 152 | 152 | return 'Test' === $response->headers->get('X-Test'); |
| 153 | 153 | }))->shouldBeCalled(); |
| 154 | 154 | |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | ])); |
| 178 | 178 | $event->getResponse()->willReturn(null); |
| 179 | 179 | $event->getException()->willReturn($exception); |
| 180 | - $event->setResponse(Argument::that(function (Response $response) { |
|
| 180 | + $event->setResponse(Argument::that(function(Response $response) { |
|
| 181 | 181 | return 'application/xml' === $response->headers->get('Content-Type'); |
| 182 | 182 | }))->shouldBeCalled(); |
| 183 | 183 | |