@@ -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 | |
@@ -15,11 +15,11 @@ discard block |
||
15 | 15 | |
16 | 16 | $container->register(new DoctrineServiceProvider()); |
17 | 17 | |
18 | -$container[ArrayStorageCache::class] = function () { |
|
18 | +$container[ArrayStorageCache::class] = function() { |
|
19 | 19 | return new ArrayStorageCache(); |
20 | 20 | }; |
21 | 21 | |
22 | -$container[CourseRepository::class] = function () use ($container) { |
|
22 | +$container[CourseRepository::class] = function() use ($container) { |
|
23 | 23 | return new CourseRepository( |
24 | 24 | $container['db'], |
25 | 25 | $container[Resolver::class], |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | ); |
29 | 29 | }; |
30 | 30 | |
31 | -$container[DocumentRepository::class] = function () use ($container) { |
|
31 | +$container[DocumentRepository::class] = function() use ($container) { |
|
32 | 32 | return new DocumentRepository( |
33 | 33 | $container['db'], |
34 | 34 | $container[Resolver::class], |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | ); |
38 | 38 | }; |
39 | 39 | |
40 | -$container[Resolver::class] = function () use ($container) { |
|
40 | +$container[Resolver::class] = function() use ($container) { |
|
41 | 41 | return new Resolver($container, [ |
42 | 42 | CourseRepository::class, |
43 | 43 | DocumentRepository::class, |
@@ -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\ApiSkeleton\Serialization; |
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\ApiSkeleton\Validation; |
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\ApiSkeleton\Deserialization; |
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\ApiSkeleton\Model; |
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\ApiSkeleton\Repository; |
6 | 6 |
@@ -88,7 +88,7 @@ |
||
88 | 88 | new Error( |
89 | 89 | $path.'[_all]', |
90 | 90 | 'constraint.uniquemodel.notunique', |
91 | - ['uniqueProperties' => 'name'] |
|
91 | + ['uniqueProperties' => 'name'] |
|
92 | 92 | ), |
93 | 93 | ]; |
94 | 94 | } |
@@ -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\Validation; |
6 | 6 | |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | new PropertyMapping('active', [new NotNullConstraint(), new NotBlankConstraint()]), |
76 | 76 | new PropertyMapping('documents', [ |
77 | 77 | new ModelCollectionConstraint(), |
78 | - new CallbackConstraint(function (string $path, $collection) { |
|
78 | + new CallbackConstraint(function(string $path, $collection) { |
|
79 | 79 | if (!$collection instanceof ModelCollectionInterface) { |
80 | 80 | return []; |
81 | 81 | } |
@@ -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 | |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | |
20 | 20 | $container->register(new ValidationProvider()); |
21 | 21 | |
22 | -$container->extend('validator.objectmappings', function (array $objectMappings) use ($container) { |
|
22 | +$container->extend('validator.objectmappings', function(array $objectMappings) use ($container) { |
|
23 | 23 | $objectMappings[] = new LazyObjectMapping( |
24 | 24 | $container, |
25 | 25 | CourseMapping::class, |
@@ -41,14 +41,14 @@ discard block |
||
41 | 41 | return $objectMappings; |
42 | 42 | }); |
43 | 43 | |
44 | -$container[CourseMapping::class] = function () use ($container) { |
|
44 | +$container[CourseMapping::class] = function() use ($container) { |
|
45 | 45 | return new CourseMapping($container[Resolver::class]); |
46 | 46 | }; |
47 | 47 | |
48 | -$container[CourseSearchMapping::class] = function () { |
|
48 | +$container[CourseSearchMapping::class] = function() { |
|
49 | 49 | return new CourseSearchMapping(); |
50 | 50 | }; |
51 | 51 | |
52 | -$container[DocumentMapping::class] = function () use ($container) { |
|
52 | +$container[DocumentMapping::class] = function() use ($container) { |
|
53 | 53 | return new DocumentMapping(); |
54 | 54 | }; |
@@ -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 | |
@@ -19,11 +19,11 @@ discard block |
||
19 | 19 | $container->register(new SwiftmailerServiceProvider()); |
20 | 20 | |
21 | 21 | // extend providers |
22 | -$container['api-http.response.factory'] = function () { |
|
22 | +$container['api-http.response.factory'] = function() { |
|
23 | 23 | return new ResponseFactory(); |
24 | 24 | }; |
25 | 25 | |
26 | -$container->extend('translator.providers', function (array $providers) use ($container) { |
|
26 | +$container->extend('translator.providers', function(array $providers) use ($container) { |
|
27 | 27 | $providers[] = new LocaleTranslationProvider( |
28 | 28 | 'de', |
29 | 29 | array_replace( |