Test Failed
Push — master ( f1acbc...d29eb8 )
by Dominik
05:15
created
app/Validation/DocumentMapping.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\Validation;
6 6
 
Please login to merge, or discard this patch.
app/Deserialization/DocumentMapping.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\Deserialization;
6 6
 
Please login to merge, or discard this patch.
app/Model/Document.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/Repository/DocumentRepository.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\Repository;
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', [], $this->getQueryFields($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 () {
116
+                function() {
117 117
                     return $this->linkGenerator->generateLink('course_create');
118 118
                 }
119 119
             )),
Please login to merge, or discard this patch.
app/Validation/CourseMapping.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
                                 new Error(
89 89
                                     $path.'[_all]',
90 90
                                     'constraint.uniquemodel.notunique',
91
-                                     ['uniqueProperties' => 'name']
91
+                                        ['uniqueProperties' => 'name']
92 92
                                 ),
93 93
                             ];
94 94
                         }
Please login to merge, or discard this 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
 namespace Chubbyphp\ApiSkeleton\Validation;
6 6
 
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
             new PropertyMapping('active', [new NotNullConstraint(), new NotBlankConstraint()]),
76 76
             new PropertyMapping('documents', [
77 77
                 new ModelCollectionConstraint(),
78
-                new CallbackConstraint(function (string $path, $collection) {
78
+                new CallbackConstraint(function(string $path, $collection) {
79 79
                     if (!$collection instanceof ModelCollectionInterface) {
80 80
                         return [];
81 81
                     }
Please login to merge, or discard this patch.