@@ -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 @@ 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'], |
@@ -29,31 +29,31 @@ discard block |
||
| 29 | 29 | ); |
| 30 | 30 | }; |
| 31 | 31 | |
| 32 | - $container['api-http.request.acceptNegotiator'] = function () use ($container) { |
|
| 32 | + $container['api-http.request.acceptNegotiator'] = function() use ($container) { |
|
| 33 | 33 | return new AcceptNegotiator($container['api-http.request.accepted']); |
| 34 | 34 | }; |
| 35 | 35 | |
| 36 | - $container['api-http.request.acceptLanguageNegotiator'] = function () use ($container) { |
|
| 36 | + $container['api-http.request.acceptLanguageNegotiator'] = function() use ($container) { |
|
| 37 | 37 | return new AcceptLanguageNegotiator($container['api-http.request.acceptedLanguages']); |
| 38 | 38 | }; |
| 39 | 39 | |
| 40 | - $container['api-http.request.contentTypeNegotiator'] = function () use ($container) { |
|
| 40 | + $container['api-http.request.contentTypeNegotiator'] = function() use ($container) { |
|
| 41 | 41 | return new ContentTypeNegotiator($container['api-http.request.contentTypes']); |
| 42 | 42 | }; |
| 43 | 43 | |
| 44 | - $container['api-http.request.accepted'] = function () { |
|
| 44 | + $container['api-http.request.accepted'] = function() { |
|
| 45 | 45 | return []; |
| 46 | 46 | }; |
| 47 | 47 | |
| 48 | - $container['api-http.request.acceptedLanguages'] = function () { |
|
| 48 | + $container['api-http.request.acceptedLanguages'] = function() { |
|
| 49 | 49 | return []; |
| 50 | 50 | }; |
| 51 | 51 | |
| 52 | - $container['api-http.request.contentTypes'] = function () { |
|
| 52 | + $container['api-http.request.contentTypes'] = function() { |
|
| 53 | 53 | return []; |
| 54 | 54 | }; |
| 55 | 55 | |
| 56 | - $container['api-http.response.manager'] = function () use ($container) { |
|
| 56 | + $container['api-http.response.manager'] = function() use ($container) { |
|
| 57 | 57 | return new ResponseManager( |
| 58 | 58 | $container['api-http.request.manager'], |
| 59 | 59 | $container['api-http.response.factory'], |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | ); |
| 63 | 63 | }; |
| 64 | 64 | |
| 65 | - $container['api-http.response.factory'] = function () { |
|
| 65 | + $container['api-http.response.factory'] = function() { |
|
| 66 | 66 | throw new \RuntimeException('Missing response factory, define service "api-http.response.factory"'); |
| 67 | 67 | }; |
| 68 | 68 | } |
@@ -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 | |