Test Failed
Pull Request — master (#10)
by Anatoly
11:06
created
src/Command/GenerateRoadRunnerSystemdUnitCommand.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -66,23 +66,23 @@
 block discarded – undo
66 66
         $user = trim(`id -u -n`);
67 67
         $group = trim(`id -g -n`);
68 68
         $questioner = $this->getHelper('question');
69
-        $replacements = [];
69
+        $replacements = [ ];
70 70
 
71 71
         $format = 'The RoadRunner path [<fg=yellow>%s</>]: ';
72 72
         $question = new Question(sprintf($format, $rr), $rr);
73
-        $replacements['{rr}'] = $questioner->ask($input, $output, $question);
73
+        $replacements[ '{rr}' ] = $questioner->ask($input, $output, $question);
74 74
 
75 75
         $format = 'The directory in which the service will be started [<fg=yellow>%s</>]: ';
76 76
         $question = new Question(sprintf($format, $cwd), $cwd);
77
-        $replacements['{cwd}'] = $questioner->ask($input, $output, $question);
77
+        $replacements[ '{cwd}' ] = $questioner->ask($input, $output, $question);
78 78
 
79 79
         $format = 'The user on whose behalf the service will be started [<fg=yellow>%s</>]: ';
80 80
         $question = new Question(sprintf($format, $user), $user);
81
-        $replacements['{user}'] = $questioner->ask($input, $output, $question);
81
+        $replacements[ '{user}' ] = $questioner->ask($input, $output, $question);
82 82
 
83 83
         $format = 'The group on whose behalf the service will be started [<fg=yellow>%s</>]: ';
84 84
         $question = new Question(sprintf($format, $group), $group);
85
-        $replacements['{group}'] = $questioner->ask($input, $output, $question);
85
+        $replacements[ '{group}' ] = $questioner->ask($input, $output, $question);
86 86
 
87 87
         $output->writeln(strtr(static::TEMPLATE, $replacements));
88 88
 
Please login to merge, or discard this patch.
config/definitions/openapi.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 use function DI\factory;
7 7
 
8 8
 return [
9
-    'openapi' => factory(function ($container) {
9
+    'openapi' => factory(function($container) {
10 10
         $info = new Info(
11 11
             $container->get('app.name'),
12 12
             $container->get('app.version')
Please login to merge, or discard this patch.
config/definitions/monolog.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,5 +19,5 @@
 block discarded – undo
19 19
         create(ErrorLogHandler::class),
20 20
     ],
21 21
 
22
-    'monolog.configuration.processors' => [],
22
+    'monolog.configuration.processors' => [ ],
23 23
 ];
Please login to merge, or discard this patch.
src/Middleware/ErrorHandlingMiddleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@
 block discarded – undo
142 142
 
143 143
         return $this->error(
144 144
             $e->getMessage(),
145
-            $e->getFile() .':'. $e->getLine(),
145
+            $e->getFile() . ':' . $e->getLine(),
146 146
             $e->getCode(),
147 147
             500
148 148
         );
Please login to merge, or discard this patch.
src/Middleware/TrimStringsMiddleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
         $parsedBody = $request->getParsedBody();
38 38
 
39 39
         if (is_array($parsedBody)) {
40
-            array_walk_recursive($parsedBody, function (&$value) {
40
+            array_walk_recursive($parsedBody, function(&$value) {
41 41
                 if (is_string($value)) {
42 42
                     $value = trim($value);
43 43
                 }
Please login to merge, or discard this patch.
src/Middleware/NullizeEmptyStringsMiddleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         $parsedBody = $request->getParsedBody();
36 36
 
37 37
         if (is_array($parsedBody)) {
38
-            array_walk_recursive($parsedBody, function (&$value) {
38
+            array_walk_recursive($parsedBody, function(&$value) {
39 39
                 if ('' === $value) {
40 40
                     $value = null;
41 41
                 }
Please login to merge, or discard this patch.
src/Exception/InvalidEntityException.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     public static function assertValid(object $entity, ValidatorInterface $validator) : void
34 34
     {
35 35
         $violations = self::convertViolationsToArray($validator->validate($entity));
36
-        if ([] === $violations) {
36
+        if ([ ] === $violations) {
37 37
             return;
38 38
         }
39 39
 
@@ -51,9 +51,9 @@  discard block
 block discarded – undo
51 51
      */
52 52
     private static function convertViolationsToArray(ConstraintViolationListInterface $violations) : array
53 53
     {
54
-        $result = [];
54
+        $result = [ ];
55 55
         foreach ($violations as $violation) {
56
-            $result[] = [
56
+            $result[ ] = [
57 57
                 'message' => $violation->getMessage(),
58 58
                 'property' => $violation->getPropertyPath(),
59 59
             ];
Please login to merge, or discard this patch.
config/definitions/doctrine.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 return [
14 14
     'doctrine' => autowire(ManagerRegistry::class),
15 15
 
16
-    'doctrine.types' => [],
16
+    'doctrine.types' => [ ],
17 17
 
18 18
     'doctrine.configuration' => [
19 19
         'master' => [
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         ],
41 41
     ],
42 42
 
43
-    'doctrine.configuration.master.connection'           => ['url' => env('DB_MASTER_URL')],
43
+    'doctrine.configuration.master.connection'           => [ 'url' => env('DB_MASTER_URL') ],
44 44
     'doctrine.configuration.master.metadata_sources'     => get('doctrine.configuration.default.metadata_sources'),
45 45
     'doctrine.configuration.master.metadata_cache'       => get('doctrine.configuration.default.metadata_cache'),
46 46
     'doctrine.configuration.master.query_cache'          => get('doctrine.configuration.default.query_cache'),
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     'doctrine.configuration.master.proxy_auto_generate'  => get('doctrine.configuration.default.proxy_auto_generate'),
51 51
     'doctrine.configuration.master.sql_logger'           => get('doctrine.configuration.default.sql_logger'),
52 52
 
53
-    'doctrine.configuration.slave.connection'            => ['url' => env('DB_SLAVE_URL')],
53
+    'doctrine.configuration.slave.connection'            => [ 'url' => env('DB_SLAVE_URL') ],
54 54
     'doctrine.configuration.slave.metadata_sources'      => get('doctrine.configuration.default.metadata_sources'),
55 55
     'doctrine.configuration.slave.metadata_cache'        => get('doctrine.configuration.default.metadata_cache'),
56 56
     'doctrine.configuration.slave.query_cache'           => get('doctrine.configuration.default.query_cache'),
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     'doctrine.configuration.slave.proxy_auto_generate'   => get('doctrine.configuration.default.proxy_auto_generate'),
61 61
     'doctrine.configuration.slave.sql_logger'            => get('doctrine.configuration.default.sql_logger'),
62 62
 
63
-    'doctrine.configuration.default.metadata_sources'    => [string('{app.root}/src/Entity')],
63
+    'doctrine.configuration.default.metadata_sources'    => [ string('{app.root}/src/Entity') ],
64 64
     'doctrine.configuration.default.metadata_cache'      => get('doctrine.configuration.default.default_cache'),
65 65
     'doctrine.configuration.default.query_cache'         => get('doctrine.configuration.default.default_cache'),
66 66
     'doctrine.configuration.default.result_cache'        => get('doctrine.configuration.default.default_cache'),
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     'doctrine.configuration.default.proxy_auto_generate' => true,
71 71
     'doctrine.configuration.default.sql_logger'          => null,
72 72
 
73
-    'commands' => decorate(function ($previous, $container) {
73
+    'commands' => decorate(function($previous, $container) {
74 74
         // Proxy Commands for the Doctrine Library...
75 75
         $additional = $container->get('doctrine')->getCommands();
76 76
 
Please login to merge, or discard this patch.
config/definitions/validator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 use function DI\factory;
8 8
 
9 9
 return [
10
-    'validator' => factory(function ($container) : ValidatorInterface {
10
+    'validator' => factory(function($container) : ValidatorInterface {
11 11
         return Validation::createValidatorBuilder()
12 12
             ->enableAnnotationMapping()
13 13
             ->setConstraintValidatorFactory(
Please login to merge, or discard this patch.