@@ -17,7 +17,7 @@ |
||
17 | 17 | */ |
18 | 18 | public function process(ContainerBuilder $container) |
19 | 19 | { |
20 | - if (! $container->hasDefinition('alchemy_rest.transformer_registry')) { |
|
20 | + if (!$container->hasDefinition('alchemy_rest.transformer_registry')) { |
|
21 | 21 | return; |
22 | 22 | } |
23 | 23 |
@@ -15,7 +15,7 @@ |
||
15 | 15 | { |
16 | 16 | $result = $event->getControllerResult(); |
17 | 17 | |
18 | - if (! $result instanceof BadRequestResult) { |
|
18 | + if (!$result instanceof BadRequestResult) { |
|
19 | 19 | return; |
20 | 20 | } |
21 | 21 |
@@ -31,7 +31,7 @@ |
||
31 | 31 | $request = $event->getRequest(); |
32 | 32 | $attributes = $request->attributes; |
33 | 33 | |
34 | - if (! $attributes->has('_dates')) { |
|
34 | + if (!$attributes->has('_dates')) { |
|
35 | 35 | return; |
36 | 36 | } |
37 | 37 |
@@ -13,13 +13,13 @@ |
||
13 | 13 | |
14 | 14 | public function onKernelView(GetResponseForControllerResultEvent $event) |
15 | 15 | { |
16 | - if (! $event->getRequest()->attributes->get('_rest[encode_response]', false, true)) { |
|
16 | + if (!$event->getRequest()->attributes->get('_rest[encode_response]', false, true)) { |
|
17 | 17 | return; |
18 | 18 | } |
19 | 19 | |
20 | 20 | $result = $event->getControllerResult(); |
21 | 21 | |
22 | - if (! $result instanceof Response) { |
|
22 | + if (!$result instanceof Response) { |
|
23 | 23 | if (!is_array($result)) { |
24 | 24 | throw new \LogicException('Invalid controller result: array was expected.'); |
25 | 25 | } |
@@ -16,7 +16,7 @@ |
||
16 | 16 | { |
17 | 17 | $result = $event->getControllerResult(); |
18 | 18 | |
19 | - if (! $result instanceof RequestAcceptedResult) { |
|
19 | + if (!$result instanceof RequestAcceptedResult) { |
|
20 | 20 | return; |
21 | 21 | } |
22 | 22 |
@@ -35,7 +35,7 @@ |
||
35 | 35 | */ |
36 | 36 | public function onKernelException(GetResponseForExceptionEvent $event) |
37 | 37 | { |
38 | - if (! $this->matcher->matches($event->getRequest())) { |
|
38 | + if (!$this->matcher->matches($event->getRequest())) { |
|
39 | 39 | return; |
40 | 40 | } |
41 | 41 |
@@ -24,7 +24,7 @@ |
||
24 | 24 | $result = $event->getControllerResult(); |
25 | 25 | $request = $event->getRequest(); |
26 | 26 | |
27 | - if (! $result instanceof ResourceCreatedResult) { |
|
27 | + if (!$result instanceof ResourceCreatedResult) { |
|
28 | 28 | return; |
29 | 29 | } |
30 | 30 |
@@ -34,7 +34,7 @@ |
||
34 | 34 | return; |
35 | 35 | } |
36 | 36 | |
37 | - if (! is_array($config)) { |
|
37 | + if (!is_array($config)) { |
|
38 | 38 | $config = array(); |
39 | 39 | } |
40 | 40 |
@@ -15,7 +15,7 @@ |
||
15 | 15 | { |
16 | 16 | $result = $event->getControllerResult(); |
17 | 17 | |
18 | - if (! $result instanceof SuccessResult) { |
|
18 | + if (!$result instanceof SuccessResult) { |
|
19 | 19 | return; |
20 | 20 | } |
21 | 21 |