@@ -66,23 +66,23 @@  | 
                                                    ||
| 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 | |
@@ -3,7 +3,7 @@  | 
                                                    ||
| 3 | 3 | use Doctrine\Common\Annotations\AnnotationRegistry;  | 
                                                        
| 4 | 4 | use Symfony\Component\Dotenv\Dotenv;  | 
                                                        
| 5 | 5 | |
| 6 | -set_error_handler(function ($severity, $message, $file, $line) { | 
                                                        |
| 6 | +set_error_handler(function($severity, $message, $file, $line) { | 
                                                        |
| 7 | 7 | throw new ErrorException($message, 0, $severity, $file, $line);  | 
                                                        
| 8 | 8 | });  | 
                                                        
| 9 | 9 | |
@@ -44,7 +44,7 @@ discard block  | 
                                                    ||
| 44 | 44 | |
| 45 | 45 | // Allowed origins  | 
                                                        
| 46 | 46 | 'cors.configuration.all_origins_allowed' => false,  | 
                                                        
| 47 | - 'cors.configuration.allowed_origins' => [],  | 
                                                        |
| 47 | + 'cors.configuration.allowed_origins' => [ ],  | 
                                                        |
| 48 | 48 | |
| 49 | 49 | // Allowed methods  | 
                                                        
| 50 | 50 | //  | 
                                                        
@@ -88,7 +88,7 @@ discard block  | 
                                                    ||
| 88 | 88 | ],  | 
                                                        
| 89 | 89 | |
| 90 | 90 | // Headers other than the simple ones that might be exposed to user agent.  | 
                                                        
| 91 | - 'cors.configuration.exposed_headers' => [],  | 
                                                        |
| 91 | + 'cors.configuration.exposed_headers' => [ ],  | 
                                                        |
| 92 | 92 | |
| 93 | 93 | // If request 'Host' header should be checked against server's origin.  | 
                                                        
| 94 | 94 | // Check of Host header is strongly encouraged by #6.3 CORS.  | 
                                                        
@@ -7,7 +7,7 @@  | 
                                                    ||
| 7 | 7 | use function DI\factory;  | 
                                                        
| 8 | 8 | |
| 9 | 9 | return [  | 
                                                        
| 10 | -    'router' => factory(function ($container) { | 
                                                        |
| 10 | +    'router' => factory(function($container) { | 
                                                        |
| 11 | 11 | $router = new Router();  | 
                                                        
| 12 | 12 | |
| 13 | 13 | $source = realpath(__DIR__ . '/../../src/Controller');  | 
                                                        
@@ -6,7 +6,7 @@  | 
                                                    ||
| 6 | 6 | use function DI\factory;  | 
                                                        
| 7 | 7 | |
| 8 | 8 | return [  | 
                                                        
| 9 | -    'validator' => factory(function ($container) { | 
                                                        |
| 9 | +    'validator' => factory(function($container) { | 
                                                        |
| 10 | 10 | return Validation::createValidatorBuilder()  | 
                                                        
| 11 | 11 | ->enableAnnotationMapping()  | 
                                                        
| 12 | 12 | ->setConstraintValidatorFactory(  | 
                                                        
@@ -12,7 +12,7 @@ discard block  | 
                                                    ||
| 12 | 12 | use function DI\string;  | 
                                                        
| 13 | 13 | |
| 14 | 14 | return [  | 
                                                        
| 15 | -    'commands' => decorate(function ($previous, $container) { | 
                                                        |
| 15 | +    'commands' => decorate(function($previous, $container) { | 
                                                        |
| 16 | 16 | // the provider contains commands for  | 
                                                        
| 17 | 17 | // the following Doctrine libraries: DBAL, ORM and Migrations.  | 
                                                        
| 18 | 18 | $provider = new CommandsProvider($container);  | 
                                                        
@@ -55,7 +55,7 @@ discard block  | 
                                                    ||
| 55 | 55 |          'url' => env('DATABASE_URL', 'mysql://user:[email protected]:3306/acme'), | 
                                                        
| 56 | 56 | ],  | 
                                                        
| 57 | 57 | |
| 58 | -    'doctrine.configuration.default.metadata_sources' => [string('{app.root}/src/Entity')], | 
                                                        |
| 58 | +    'doctrine.configuration.default.metadata_sources' => [ string('{app.root}/src/Entity') ], | 
                                                        |
| 59 | 59 |      'doctrine.configuration.default.metadata_cache' => get('doctrine.configuration.default.default_cache'), | 
                                                        
| 60 | 60 |      'doctrine.configuration.default.query_cache' => get('doctrine.configuration.default.default_cache'), | 
                                                        
| 61 | 61 |      'doctrine.configuration.default.result_cache' => get('doctrine.configuration.default.default_cache'), | 
                                                        
@@ -6,7 +6,7 @@  | 
                                                    ||
| 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') | 
                                                        
@@ -19,5 +19,5 @@  | 
                                                    ||
| 19 | 19 | create(ErrorLogHandler::class),  | 
                                                        
| 20 | 20 | ],  | 
                                                        
| 21 | 21 | |
| 22 | - 'monolog.configuration.processors' => [],  | 
                                                        |
| 22 | + 'monolog.configuration.processors' => [ ],  | 
                                                        |
| 23 | 23 | ];  | 
                                                        
@@ -84,11 +84,11 @@  | 
                                                    ||
| 84 | 84 | |
| 85 | 85 |          foreach ($exception->getViolations() as $v) { | 
                                                        
| 86 | 86 | $violations->add(new ConstraintViolation(  | 
                                                        
| 87 | - $v['message'],  | 
                                                        |
| 87 | + $v[ 'message' ],  | 
                                                        |
| 88 | 88 | null,  | 
                                                        
| 89 | - [],  | 
                                                        |
| 89 | + [ ],  | 
                                                        |
| 90 | 90 | null,  | 
                                                        
| 91 | - $v['property'],  | 
                                                        |
| 91 | + $v[ 'property' ],  | 
                                                        |
| 92 | 92 | null,  | 
                                                        
| 93 | 93 | null,  | 
                                                        
| 94 | 94 | 'b187c971-810b-455a-baf3-06dc6a1591f4',  |