@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Chubbyphp\ApiHttp\Manager; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Chubbyphp\ApiHttp\Manager; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Chubbyphp\ApiHttp\Manager; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Chubbyphp\ApiHttp\Manager; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Chubbyphp\ApiHttp\Factory; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Chubbyphp\ApiHttp\Error; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Chubbyphp\ApiHttp\Error; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Chubbyphp\ApiHttp\Serialization; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Chubbyphp\ApiHttp\Provider; |
| 6 | 6 | |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | */ |
| 20 | 20 | public function register(Container $container) |
| 21 | 21 | { |
| 22 | - $container['api-http.request.manager'] = function () use ($container) { |
|
| 22 | + $container['api-http.request.manager'] = function() use ($container) { |
|
| 23 | 23 | return new RequestManager( |
| 24 | 24 | $container['api-http.request.acceptNegotiator'], |
| 25 | 25 | $container['api-http.request.acceptLanguageNegotiator'], |
@@ -28,31 +28,31 @@ discard block |
||
| 28 | 28 | ); |
| 29 | 29 | }; |
| 30 | 30 | |
| 31 | - $container['api-http.request.acceptNegotiator'] = function () use ($container) { |
|
| 31 | + $container['api-http.request.acceptNegotiator'] = function() use ($container) { |
|
| 32 | 32 | return new AcceptNegotiator($container['api-http.request.accepted']); |
| 33 | 33 | }; |
| 34 | 34 | |
| 35 | - $container['api-http.request.acceptLanguageNegotiator'] = function () use ($container) { |
|
| 35 | + $container['api-http.request.acceptLanguageNegotiator'] = function() use ($container) { |
|
| 36 | 36 | return new AcceptLanguageNegotiator($container['api-http.request.acceptedLanguages']); |
| 37 | 37 | }; |
| 38 | 38 | |
| 39 | - $container['api-http.request.contentTypeNegotiator'] = function () use ($container) { |
|
| 39 | + $container['api-http.request.contentTypeNegotiator'] = function() use ($container) { |
|
| 40 | 40 | return new ContentTypeNegotiator($container['api-http.request.contentTypes']); |
| 41 | 41 | }; |
| 42 | 42 | |
| 43 | - $container['api-http.request.accepted'] = function () { |
|
| 43 | + $container['api-http.request.accepted'] = function() { |
|
| 44 | 44 | return []; |
| 45 | 45 | }; |
| 46 | 46 | |
| 47 | - $container['api-http.request.acceptedLanguages'] = function () { |
|
| 47 | + $container['api-http.request.acceptedLanguages'] = function() { |
|
| 48 | 48 | return []; |
| 49 | 49 | }; |
| 50 | 50 | |
| 51 | - $container['api-http.request.contentTypes'] = function () { |
|
| 51 | + $container['api-http.request.contentTypes'] = function() { |
|
| 52 | 52 | return []; |
| 53 | 53 | }; |
| 54 | 54 | |
| 55 | - $container['api-http.response.manager'] = function () use ($container) { |
|
| 55 | + $container['api-http.response.manager'] = function() use ($container) { |
|
| 56 | 56 | return new ResponseManager( |
| 57 | 57 | $container['deserializer'], |
| 58 | 58 | $container['api-http.response.factory'], |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | ); |
| 61 | 61 | }; |
| 62 | 62 | |
| 63 | - $container['api-http.response.factory'] = function () { |
|
| 63 | + $container['api-http.response.factory'] = function() { |
|
| 64 | 64 | throw new \RuntimeException('Missing response factory, define service "api-http.response.factory"'); |
| 65 | 65 | }; |
| 66 | 66 | } |