@@ -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 | if (php_sapi_name() !== 'cli-server') { |
| 6 | 6 | header('HTTP/1.0 403 Forbidden'); |
@@ -12,6 +12,6 @@ discard block |
||
| 12 | 12 | $env = 'test'; |
| 13 | 13 | |
| 14 | 14 | /** @var \Slim\App $app */ |
| 15 | -$app = require_once __DIR__ . '/../app/app.php'; |
|
| 15 | +$app = require_once __DIR__.'/../app/app.php'; |
|
| 16 | 16 | |
| 17 | 17 | $app->run(); |
@@ -1,12 +1,12 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | $loader = require_once __DIR__.'/../app/autoload.php'; |
| 6 | 6 | |
| 7 | 7 | $env = 'prod'; |
| 8 | 8 | |
| 9 | 9 | /** @var \Slim\App $app */ |
| 10 | -$app = require_once __DIR__ . '/../app/app.php'; |
|
| 10 | +$app = require_once __DIR__.'/../app/app.php'; |
|
| 11 | 11 | |
| 12 | 12 | $app->run(); |
@@ -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; |
| 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\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; |
| 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\Search; |
| 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\Serialization; |
| 6 | 6 | |
@@ -64,10 +64,10 @@ discard block |
||
| 64 | 64 | public function getLinkMappings(): array |
| 65 | 65 | { |
| 66 | 66 | return [ |
| 67 | - new LinkMapping('self', new CallbackLinkSerializer(function () { |
|
| 67 | + new LinkMapping('self', new CallbackLinkSerializer(function() { |
|
| 68 | 68 | return $this->linkGenerator->generateLink('index'); |
| 69 | 69 | })), |
| 70 | - new LinkMapping('courses', new CallbackLinkSerializer(function () { |
|
| 70 | + new LinkMapping('courses', new CallbackLinkSerializer(function() { |
|
| 71 | 71 | return $this->linkGenerator->generateLink('course_search'); |
| 72 | 72 | })), |
| 73 | 73 | ]; |
@@ -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 | )), |