@@ -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\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\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\Controller\Course; |
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\Controller\Course; |
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\Controller\Course; |
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\Controller\Course; |
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\ApiSkeleton; |
6 | 6 | |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | |
19 | 19 | $container->register(new DeserializationProvider()); |
20 | 20 | |
21 | -$container->extend('deserializer.objectmappings', function (array $objectMappings) use ($container) { |
|
21 | +$container->extend('deserializer.objectmappings', function(array $objectMappings) use ($container) { |
|
22 | 22 | $objectMappings[] = new LazyObjectMapping( |
23 | 23 | $container, |
24 | 24 | CourseMapping::class, |
@@ -40,14 +40,14 @@ discard block |
||
40 | 40 | return $objectMappings; |
41 | 41 | }); |
42 | 42 | |
43 | -$container[CourseMapping::class] = function () { |
|
43 | +$container[CourseMapping::class] = function() { |
|
44 | 44 | return new CourseMapping(); |
45 | 45 | }; |
46 | 46 | |
47 | -$container[CourseSearchMapping::class] = function () { |
|
47 | +$container[CourseSearchMapping::class] = function() { |
|
48 | 48 | return new CourseSearchMapping(); |
49 | 49 | }; |
50 | 50 | |
51 | -$container[DocumentMapping::class] = function () { |
|
51 | +$container[DocumentMapping::class] = function() { |
|
52 | 52 | return new DocumentMapping(); |
53 | 53 | }; |
@@ -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 | |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | |
24 | 24 | $container->register(new SerializationProvider()); |
25 | 25 | |
26 | -$container->extend('serializer.objectmappings', function (array $objectMappings) use ($container) { |
|
26 | +$container->extend('serializer.objectmappings', function(array $objectMappings) use ($container) { |
|
27 | 27 | $objectMappings[] = new LazyObjectMapping( |
28 | 28 | $container, |
29 | 29 | ErrorMapping::class, |
@@ -57,26 +57,26 @@ discard block |
||
57 | 57 | return $objectMappings; |
58 | 58 | }); |
59 | 59 | |
60 | -$container[LinkGenerator::class] = function () use ($container) { |
|
60 | +$container[LinkGenerator::class] = function() use ($container) { |
|
61 | 61 | return new LinkGenerator($container['router']); |
62 | 62 | }; |
63 | 63 | |
64 | -$container[ErrorMapping::class] = function () { |
|
64 | +$container[ErrorMapping::class] = function() { |
|
65 | 65 | return new ErrorMapping(); |
66 | 66 | }; |
67 | 67 | |
68 | -$container[IndexMapping::class] = function () use ($container) { |
|
68 | +$container[IndexMapping::class] = function() use ($container) { |
|
69 | 69 | return new IndexMapping($container[LinkGenerator::class]); |
70 | 70 | }; |
71 | 71 | |
72 | -$container[CourseMapping::class] = function () use ($container) { |
|
72 | +$container[CourseMapping::class] = function() use ($container) { |
|
73 | 73 | return new CourseMapping($container[LinkGenerator::class]); |
74 | 74 | }; |
75 | 75 | |
76 | -$container[CourseSearchMapping::class] = function () use ($container) { |
|
76 | +$container[CourseSearchMapping::class] = function() use ($container) { |
|
77 | 77 | return new CourseSearchMapping($container[LinkGenerator::class]); |
78 | 78 | }; |
79 | 79 | |
80 | -$container[DocumentMapping::class] = function () { |
|
80 | +$container[DocumentMapping::class] = function() { |
|
81 | 81 | return new DocumentMapping(); |
82 | 82 | }; |