Test Failed
Push — master ( ed7d3a...1e1c10 )
by Dominik
02:15
created
app/Repository/CourseRepository.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
     /**
72 72
      * @param CourseSearch $courseSearch
73 73
      *
74
-     * @return array
74
+     * @return Course[]
75 75
      */
76 76
     private function searchResult(CourseSearch $courseSearch): array
77 77
     {
Please login to merge, or discard this 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\Repository;
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/services/controller.php 1 patch
Spacing   +7 added lines, -7 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;
6 6
 
@@ -16,11 +16,11 @@  discard block
 block discarded – undo
16 16
 
17 17
 /* @var Container $container */
18 18
 
19
-$container[IndexController::class] = function () use ($container) {
19
+$container[IndexController::class] = function() use ($container) {
20 20
     return new IndexController($container['api-http.response.manager']);
21 21
 };
22 22
 
23
-$container[CourseSearchController::class] = function () use ($container) {
23
+$container[CourseSearchController::class] = function() use ($container) {
24 24
     return new CourseSearchController(
25 25
         $container['defaultLanguage'],
26 26
         $container[ErrorManager::class],
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     );
32 32
 };
33 33
 
34
-$container[CourseCreateController::class] = function () use ($container) {
34
+$container[CourseCreateController::class] = function() use ($container) {
35 35
     return new CourseCreateController(
36 36
         $container['defaultLanguage'],
37 37
         $container[ErrorManager::class],
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     );
43 43
 };
44 44
 
45
-$container[CourseReadController::class] = function () use ($container) {
45
+$container[CourseReadController::class] = function() use ($container) {
46 46
     return new CourseReadController(
47 47
         $container[ErrorManager::class],
48 48
         $container[CourseRepository::class],
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     );
51 51
 };
52 52
 
53
-$container[CourseUpdateController::class] = function () use ($container) {
53
+$container[CourseUpdateController::class] = function() use ($container) {
54 54
     return new CourseUpdateController(
55 55
         $container['defaultLanguage'],
56 56
         $container[ErrorManager::class],
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
     );
62 62
 };
63 63
 
64
-$container[CourseDeleteController::class] = function () use ($container) {
64
+$container[CourseDeleteController::class] = function() use ($container) {
65 65
     return new CourseDeleteController(
66 66
         $container[ErrorManager::class],
67 67
         $container[CourseRepository::class],
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.
app/Serialization/CourseMapping.php 1 patch
Spacing   +4 added lines, -4 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
 
@@ -73,17 +73,17 @@  discard block
 block discarded – undo
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
             )),
Please login to merge, or discard this patch.
app/Controller/Course/CourseSearchController.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\Controller\Course;
6 6
 
Please login to merge, or discard this patch.
app/routes.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;
6 6
 
@@ -16,9 +16,9 @@  discard block
 block discarded – undo
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');
Please login to merge, or discard this patch.