@@ -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 | |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | */ |
19 | 19 | public function register(Container $container) |
20 | 20 | { |
21 | - $container['api-http.request.manager'] = function () use ($container) { |
|
21 | + $container['api-http.request.manager'] = function() use ($container) { |
|
22 | 22 | return new RequestManager( |
23 | 23 | $container['api-http.request.contentNegotiator'], |
24 | 24 | $container['deserializer'], |
@@ -28,19 +28,19 @@ discard block |
||
28 | 28 | ); |
29 | 29 | }; |
30 | 30 | |
31 | - $container['api-http.request.contentNegotiator'] = function () { |
|
31 | + $container['api-http.request.contentNegotiator'] = function() { |
|
32 | 32 | return new ContentNegotiator(); |
33 | 33 | }; |
34 | 34 | |
35 | - $container['api-http.request.languageNegotiator'] = function () { |
|
35 | + $container['api-http.request.languageNegotiator'] = function() { |
|
36 | 36 | return new LanguageNegotiator(); |
37 | 37 | }; |
38 | 38 | |
39 | - $container['api-http.request.languages'] = function () { |
|
39 | + $container['api-http.request.languages'] = function() { |
|
40 | 40 | return []; |
41 | 41 | }; |
42 | 42 | |
43 | - $container['api-http.response.manager'] = function () use ($container) { |
|
43 | + $container['api-http.response.manager'] = function() use ($container) { |
|
44 | 44 | return new ResponseManager( |
45 | 45 | $container['api-http.request.manager'], |
46 | 46 | $container['api-http.response.factory'], |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | ); |
50 | 50 | }; |
51 | 51 | |
52 | - $container['api-http.response.factory'] = function () { |
|
52 | + $container['api-http.response.factory'] = function() { |
|
53 | 53 | throw new \RuntimeException('Missing response factory, define service "api-http.response.factory"'); |
54 | 54 | }; |
55 | 55 | } |
@@ -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\Negotiation; |
6 | 6 | |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | $values[$contentType] = $attributes; |
32 | 32 | } |
33 | 33 | |
34 | - uasort($values, function (array $a, array $b) { |
|
34 | + uasort($values, function(array $a, array $b) { |
|
35 | 35 | return $b['q'] <=> $a['q']; |
36 | 36 | }); |
37 | 37 |
@@ -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\Negotiation; |
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\Negotiation; |
6 | 6 |