Test Failed
Push — master ( 813e38...4a9a7a )
by Dominik
05:02
created
app/services.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
 
@@ -19,11 +19,11 @@  discard block
 block discarded – undo
19 19
 $container->register(new SwiftmailerServiceProvider());
20 20
 
21 21
 // extend providers
22
-$container['api-http.response.factory'] = function () {
22
+$container['api-http.response.factory'] = function() {
23 23
     return new ResponseFactory();
24 24
 };
25 25
 
26
-$container->extend('translator.providers', function (array $providers) use ($container) {
26
+$container->extend('translator.providers', function(array $providers) use ($container) {
27 27
     $providers[] = new LocaleTranslationProvider(
28 28
         'de',
29 29
         array_replace(
Please login to merge, or discard this patch.
app/Controller/Course/CourseCreateController.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
 namespace Chubbyphp\ApiSkeleton\Controller\Course;
6 6
 
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
                 $accept,
100 100
                 Error::SCOPE_BODY,
101 101
                 'course',
102
-                (new NestedErrorMessages($errors, function (string $key, array $arguments) use ($locale) {
102
+                (new NestedErrorMessages($errors, function(string $key, array $arguments) use ($locale) {
103 103
                     return $this->translator->translate($locale, $key, $arguments);
104 104
                 }))->getMessages()
105 105
             );
Please login to merge, or discard this patch.
app/Controller/Course/CourseSearchController.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
 namespace Chubbyphp\ApiSkeleton\Controller\Course;
6 6
 
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
                 $accept,
94 94
                 Error::SCOPE_QUERY,
95 95
                 'courseSearch',
96
-                (new NestedErrorMessages($errors, function (string $key, array $arguments) use ($locale) {
96
+                (new NestedErrorMessages($errors, function(string $key, array $arguments) use ($locale) {
97 97
                     return $this->translator->translate($locale, $key, $arguments);
98 98
                 }))->getMessages()
99 99
             );
Please login to merge, or discard this patch.
app/Controller/Course/CourseUpdateController.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
 namespace Chubbyphp\ApiSkeleton\Controller\Course;
6 6
 
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
                 $accept,
107 107
                 Error::SCOPE_BODY,
108 108
                 'course',
109
-                (new NestedErrorMessages($errors, function (string $key, array $arguments) use ($locale) {
109
+                (new NestedErrorMessages($errors, function(string $key, array $arguments) use ($locale) {
110 110
                     return $this->translator->translate($locale, $key, $arguments);
111 111
                 }))->getMessages()
112 112
             );
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
 
@@ -15,11 +15,11 @@  discard block
 block discarded – undo
15 15
 
16 16
 /* @var Container $container */
17 17
 
18
-$container[IndexController::class] = function () use ($container) {
18
+$container[IndexController::class] = function() use ($container) {
19 19
     return new IndexController($container['api-http.request.manager'], $container['api-http.response.manager']);
20 20
 };
21 21
 
22
-$container[CourseSearchController::class] = function () use ($container) {
22
+$container[CourseSearchController::class] = function() use ($container) {
23 23
     return new CourseSearchController(
24 24
         $container['defaultLanguage'],
25 25
         $container[CourseRepository::class],
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     );
31 31
 };
32 32
 
33
-$container[CourseCreateController::class] = function () use ($container) {
33
+$container[CourseCreateController::class] = function() use ($container) {
34 34
     return new CourseCreateController(
35 35
         $container['defaultLanguage'],
36 36
         $container[CourseRepository::class],
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
     );
42 42
 };
43 43
 
44
-$container[CourseReadController::class] = function () use ($container) {
44
+$container[CourseReadController::class] = function() use ($container) {
45 45
     return new CourseReadController(
46 46
         $container[CourseRepository::class],
47 47
         $container['api-http.request.manager'],
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     );
50 50
 };
51 51
 
52
-$container[CourseUpdateController::class] = function () use ($container) {
52
+$container[CourseUpdateController::class] = function() use ($container) {
53 53
     return new CourseUpdateController(
54 54
         $container['defaultLanguage'],
55 55
         $container[CourseRepository::class],
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     );
61 61
 };
62 62
 
63
-$container[CourseDeleteController::class] = function () use ($container) {
63
+$container[CourseDeleteController::class] = function() use ($container) {
64 64
     return new CourseDeleteController(
65 65
         $container[CourseRepository::class],
66 66
         $container['api-http.request.manager'],
Please login to merge, or discard this patch.