Test Failed
Push — master ( f562c0...ed7d3a )
by Dominik
02:11
created
app/Repository/CourseRepository.php 1 patch
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.
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/services/validation.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;
6 6
 
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 
18 18
 $container->register(new ValidationProvider());
19 19
 
20
-$container->extend('validator.objectmappings', function (array $objectMappings) use ($container) {
20
+$container->extend('validator.objectmappings', function(array $objectMappings) use ($container) {
21 21
     $objectMappings[] = new LazyObjectMapping(
22 22
         $container,
23 23
         CourseMapping::class,
@@ -33,10 +33,10 @@  discard block
 block discarded – undo
33 33
     return $objectMappings;
34 34
 });
35 35
 
36
-$container[CourseMapping::class] = function () use ($container) {
36
+$container[CourseMapping::class] = function() use ($container) {
37 37
     return new CourseMapping($container[Resolver::class]);
38 38
 };
39 39
 
40
-$container[CourseSearchMapping::class] = function () {
40
+$container[CourseSearchMapping::class] = function() {
41 41
     return new CourseSearchMapping();
42 42
 };
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/services/serialization.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
 
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 
22 22
 $container->register(new SerializationProvider());
23 23
 
24
-$container->extend('serializer.objectmappings', function (array $objectMappings) use ($container) {
24
+$container->extend('serializer.objectmappings', function(array $objectMappings) use ($container) {
25 25
     $objectMappings[] = new LazyObjectMapping(
26 26
         $container,
27 27
         ErrorMapping::class,
@@ -49,22 +49,22 @@  discard block
 block discarded – undo
49 49
     return $objectMappings;
50 50
 });
51 51
 
52
-$container[LinkGenerator::class] = function () use ($container) {
52
+$container[LinkGenerator::class] = function() use ($container) {
53 53
     return new LinkGenerator($container['router']);
54 54
 };
55 55
 
56
-$container[ErrorMapping::class] = function () {
56
+$container[ErrorMapping::class] = function() {
57 57
     return new ErrorMapping();
58 58
 };
59 59
 
60
-$container[IndexMapping::class] = function () use ($container) {
60
+$container[IndexMapping::class] = function() use ($container) {
61 61
     return new IndexMapping($container[LinkGenerator::class]);
62 62
 };
63 63
 
64
-$container[CourseMapping::class] = function () use ($container) {
64
+$container[CourseMapping::class] = function() use ($container) {
65 65
     return new CourseMapping($container[LinkGenerator::class]);
66 66
 };
67 67
 
68
-$container[CourseSearchMapping::class] = function () use ($container) {
68
+$container[CourseSearchMapping::class] = function() use ($container) {
69 69
     return new CourseSearchMapping($container[LinkGenerator::class]);
70 70
 };
Please login to merge, or discard this patch.
app/services/repository.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;
6 6
 
@@ -14,11 +14,11 @@  discard block
 block discarded – undo
14 14
 
15 15
 $container->register(new DoctrineServiceProvider());
16 16
 
17
-$container[ArrayStorageCache::class] = function () {
17
+$container[ArrayStorageCache::class] = function() {
18 18
     return new ArrayStorageCache();
19 19
 };
20 20
 
21
-$container[CourseRepository::class] = function () use ($container) {
21
+$container[CourseRepository::class] = function() use ($container) {
22 22
     return new CourseRepository(
23 23
         $container['db'],
24 24
         $container[Resolver::class],
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     );
28 28
 };
29 29
 
30
-$container[Resolver::class] = function () use ($container) {
30
+$container[Resolver::class] = function() use ($container) {
31 31
     return new Resolver($container, [
32 32
         CourseRepository::class,
33 33
     ]);
Please login to merge, or discard this patch.
app/services/deserialization.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;
6 6
 
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 
17 17
 $container->register(new DeserializationProvider());
18 18
 
19
-$container->extend('deserializer.objectmappings', function (array $objectMappings) use ($container) {
19
+$container->extend('deserializer.objectmappings', function(array $objectMappings) use ($container) {
20 20
     $objectMappings[] = new LazyObjectMapping(
21 21
         $container,
22 22
         CourseMapping::class,
@@ -32,10 +32,10 @@  discard block
 block discarded – undo
32 32
     return $objectMappings;
33 33
 });
34 34
 
35
-$container[CourseMapping::class] = function () {
35
+$container[CourseMapping::class] = function() {
36 36
     return new CourseMapping();
37 37
 };
38 38
 
39
-$container[CourseSearchMapping::class] = function () {
39
+$container[CourseSearchMapping::class] = function() {
40 40
     return new CourseSearchMapping();
41 41
 };
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.