Test Failed
Push — master ( e65f7f...ed8e82 )
by Dominik
02:11
created
public/index_test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.
public/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
app/app.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Chubbyphp\ApiSkeleton;
6 6
 
Please login to merge, or discard this patch.
app/Serialization/LinkGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/middlewares.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Chubbyphp\ApiSkeleton;
6 6
 
Please login to merge, or discard this patch.
app/Model/Course.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/Search/CourseSearch.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/Serialization/CourseSearchMapping.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 
@@ -86,12 +86,12 @@  discard block
 block discarded – undo
86 86
     {
87 87
         return [
88 88
             new LinkMapping('self', new CallbackLinkSerializer(
89
-                function (Request $request, CourseSearch $courseSearch, array $fields) {
89
+                function(Request $request, CourseSearch $courseSearch, array $fields) {
90 90
                     return $this->linkGenerator->generateLink('course_search', [], $fields);
91 91
                 }
92 92
             )),
93 93
             new LinkMapping('prev', new CallbackLinkSerializer(
94
-                function (Request $request, CourseSearch $courseSearch, array $fields) {
94
+                function(Request $request, CourseSearch $courseSearch, array $fields) {
95 95
                     if ($courseSearch->getPage() > 1) {
96 96
                         $fields['page'] -= 1;
97 97
 
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
                 }
103 103
             )),
104 104
             new LinkMapping('next', new CallbackLinkSerializer(
105
-                function (Request $request, CourseSearch $courseSearch, array $fields) {
105
+                function(Request $request, CourseSearch $courseSearch, array $fields) {
106 106
                     if ($fields['page'] < $courseSearch->getPages()) {
107 107
                         $fields['page'] += 1;
108 108
 
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
                 }
114 114
             )),
115 115
             new LinkMapping('create', new CallbackLinkSerializer(
116
-                function (Request $request, CourseSearch $courseSearch, array $fields) {
116
+                function(Request $request, CourseSearch $courseSearch, array $fields) {
117 117
                     return $this->linkGenerator->generateLink('course_create');
118 118
                 }
119 119
             )),
Please login to merge, or discard this patch.
app/Serialization/IndexMapping.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         ];
Please login to merge, or discard this patch.