@@ -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\Serialization; |
6 | 6 | |
@@ -73,17 +73,17 @@ discard block |
||
73 | 73 | { |
74 | 74 | return [ |
75 | 75 | new LinkMapping('read', new CallbackLinkSerializer( |
76 | - function (Request $request, Course $course) { |
|
76 | + function(Request $request, Course $course) { |
|
77 | 77 | return $this->linkGenerator->generateLink('course_read', ['id' => $course->getId()]); |
78 | 78 | } |
79 | 79 | )), |
80 | 80 | new LinkMapping('update', new CallbackLinkSerializer( |
81 | - function (Request $request, Course $course) { |
|
81 | + function(Request $request, Course $course) { |
|
82 | 82 | return $this->linkGenerator->generateLink('course_update', ['id' => $course->getId()]); |
83 | 83 | } |
84 | 84 | )), |
85 | 85 | new LinkMapping('delete', new CallbackLinkSerializer( |
86 | - function (Request $request, Course $course) { |
|
86 | + function(Request $request, Course $course) { |
|
87 | 87 | return $this->linkGenerator->generateLink('course_delete', ['id' => $course->getId()]); |
88 | 88 | } |
89 | 89 | )), |
@@ -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 |
@@ -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 | |
@@ -16,9 +16,9 @@ discard block |
||
16 | 16 | /* @var App $app */ |
17 | 17 | /* @var Container $container */ |
18 | 18 | |
19 | -$app->group('/api', function () use ($app, $container) { |
|
19 | +$app->group('/api', function() use ($app, $container) { |
|
20 | 20 | $app->get('', IndexController::class)->setName('index'); |
21 | - $app->group('/courses', function () use ($app, $container) { |
|
21 | + $app->group('/courses', function() use ($app, $container) { |
|
22 | 22 | $app->get('', CourseSearchController::class)->setName('course_search'); |
23 | 23 | $app->post('', CourseCreateController::class)->setName('course_create'); |
24 | 24 | $app->get('/{id}', CourseReadController::class)->setName('course_read'); |
@@ -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\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\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 | }; |