@@ -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\ApiSkeleton; |
6 | 6 | |
@@ -21,11 +21,11 @@ discard block |
||
21 | 21 | $container->register(new SwiftmailerServiceProvider()); |
22 | 22 | |
23 | 23 | // extend providers |
24 | -$container['api-http.response.factory'] = function () { |
|
24 | +$container['api-http.response.factory'] = function() { |
|
25 | 25 | return new ResponseFactory(); |
26 | 26 | }; |
27 | 27 | |
28 | -$container->extend('translator.providers', function (array $providers) use ($container) { |
|
28 | +$container->extend('translator.providers', function(array $providers) use ($container) { |
|
29 | 29 | $providers[] = new LocaleTranslationProvider( |
30 | 30 | 'de', |
31 | 31 | array_replace( |
@@ -51,12 +51,12 @@ discard block |
||
51 | 51 | require_once __DIR__.'/services/deserialization.php'; |
52 | 52 | |
53 | 53 | // error |
54 | -$container[ErrorManager::class] = function () use ($container) { |
|
54 | +$container[ErrorManager::class] = function() use ($container) { |
|
55 | 55 | return new ErrorManager($container['translator']); |
56 | 56 | }; |
57 | 57 | |
58 | 58 | // http |
59 | -$container[ContentNegotiator::class] = function () { |
|
59 | +$container[ContentNegotiator::class] = function() { |
|
60 | 60 | return new ContentNegotiator(); |
61 | 61 | }; |
62 | 62 |