@@ -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\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 @@ |
||
| 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 | |
@@ -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 | |