Passed
Push — master ( 79dbb6...c8549a )
by Dominik
08:29
created
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
 
@@ -66,10 +66,10 @@  discard block
 block discarded – undo
66 66
     public function getLinkMappings(): array
67 67
     {
68 68
         return [
69
-            new LinkMapping('self', new CallbackLinkSerializer(function (Request $request) {
69
+            new LinkMapping('self', new CallbackLinkSerializer(function(Request $request) {
70 70
                 return $this->linkGenerator->generateLink($request, 'index');
71 71
             })),
72
-            new LinkMapping('courses', new CallbackLinkSerializer(function (Request $request) {
72
+            new LinkMapping('courses', new CallbackLinkSerializer(function(Request $request) {
73 73
                 return $this->linkGenerator->generateLink($request, 'course_search');
74 74
             })),
75 75
         ];
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
 
@@ -77,17 +77,17 @@  discard block
 block discarded – undo
77 77
     {
78 78
         return [
79 79
             new LinkMapping('read', new CallbackLinkSerializer(
80
-                function (Request $request, Course $course) {
80
+                function(Request $request, Course $course) {
81 81
                     return $this->linkGenerator->generateLink($request, 'course_read', ['id' => $course->getId()]);
82 82
                 }
83 83
             )),
84 84
             new LinkMapping('update', new CallbackLinkSerializer(
85
-                function (Request $request, Course $course) {
85
+                function(Request $request, Course $course) {
86 86
                     return $this->linkGenerator->generateLink($request, 'course_update', ['id' => $course->getId()]);
87 87
                 }
88 88
             )),
89 89
             new LinkMapping('delete', new CallbackLinkSerializer(
90
-                function (Request $request, Course $course) {
90
+                function(Request $request, Course $course) {
91 91
                     return $this->linkGenerator->generateLink($request, 'course_delete', ['id' => $course->getId()]);
92 92
                 }
93 93
             )),
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
 
@@ -87,14 +87,14 @@  discard block
 block discarded – undo
87 87
     {
88 88
         return [
89 89
             new LinkMapping('self', new CallbackLinkSerializer(
90
-                function (Request $request, CourseSearch $courseSearch, array $fields) {
90
+                function(Request $request, CourseSearch $courseSearch, array $fields) {
91 91
                     unset($fields['count'], $fields['pages']);
92 92
 
93 93
                     return $this->linkGenerator->generateLink($request, 'course_search', [], $fields);
94 94
                 }
95 95
             )),
96 96
             new LinkMapping('prev', new CallbackLinkSerializer(
97
-                function (Request $request, CourseSearch $courseSearch, array $fields) {
97
+                function(Request $request, CourseSearch $courseSearch, array $fields) {
98 98
                     if ($courseSearch->getPage() > 1) {
99 99
                         $fields['page'] -= 1;
100 100
 
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
                 }
108 108
             )),
109 109
             new LinkMapping('next', new CallbackLinkSerializer(
110
-                function (Request $request, CourseSearch $courseSearch, array $fields) {
110
+                function(Request $request, CourseSearch $courseSearch, array $fields) {
111 111
                     if ($fields['page'] < $courseSearch->getPages()) {
112 112
                         $fields['page'] += 1;
113 113
 
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
                 }
121 121
             )),
122 122
             new LinkMapping('create', new CallbackLinkSerializer(
123
-                function (Request $request, CourseSearch $courseSearch, array $fields) {
123
+                function(Request $request, CourseSearch $courseSearch, array $fields) {
124 124
                     return $this->linkGenerator->generateLink($request, 'course_create');
125 125
                 }
126 126
             )),
Please login to merge, or discard this patch.