@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Acelaya\Website\Console\Command; |
| 5 | 5 | |
@@ -25,16 +25,16 @@ discard block |
||
| 25 | 25 | */ |
| 26 | 26 | public function __invoke(ContainerInterface $container, $requestedName, array $options = null): LongTasksCommand |
| 27 | 27 | { |
| 28 | - $config = $container->get('config')['long_tasks']; |
|
| 29 | - $tasks = $config['tasks'] ?? []; |
|
| 28 | + $config = $container->get('config')[ 'long_tasks' ]; |
|
| 29 | + $tasks = $config[ 'tasks' ] ?? [ ]; |
|
| 30 | 30 | |
| 31 | 31 | foreach ($tasks as $key => $task) { |
| 32 | - if (! $container->has($task)) { |
|
| 33 | - unset($tasks[$key]); |
|
| 32 | + if (!$container->has($task)) { |
|
| 33 | + unset($tasks[ $key ]); |
|
| 34 | 34 | continue; |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | - $tasks[$key] = $container->get($task); |
|
| 37 | + $tasks[ $key ] = $container->get($task); |
|
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | return new LongTasksCommand($tasks); |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Acelaya\Website\Console\Command; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Acelaya\Website\Console\Factory; |
| 5 | 5 | |
@@ -26,12 +26,12 @@ discard block |
||
| 26 | 26 | */ |
| 27 | 27 | public function __invoke(ContainerInterface $container, $requestedName, array $options = null): CliApp |
| 28 | 28 | { |
| 29 | - $config = $container->get('config')['cli']; |
|
| 30 | - $commands = $config['commands'] ?? []; |
|
| 29 | + $config = $container->get('config')[ 'cli' ]; |
|
| 30 | + $commands = $config[ 'commands' ] ?? [ ]; |
|
| 31 | 31 | |
| 32 | 32 | $app = new CliApp(); |
| 33 | 33 | foreach ($commands as $command) { |
| 34 | - if (! $container->has($command)) { |
|
| 34 | + if (!$container->has($command)) { |
|
| 35 | 35 | continue; |
| 36 | 36 | } |
| 37 | 37 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Acelaya\Website\Console\Task; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Acelaya\Website\Console\Task; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Acelaya\Website\Options; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Acelaya\Website\Options; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Acelaya\Website\Options\Factory; |
| 5 | 5 | |
@@ -27,6 +27,6 @@ discard block |
||
| 27 | 27 | public function __invoke(ContainerInterface $container, $requestedName, array $options = null): MailOptions |
| 28 | 28 | { |
| 29 | 29 | $config = $container->get('config'); |
| 30 | - return new MailOptions($config['mail'] ?? []); |
|
| 30 | + return new MailOptions($config[ 'mail' ] ?? [ ]); |
|
| 31 | 31 | } |
| 32 | 32 | } |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Acelaya\Website\Factory; |
| 5 | 5 | |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | */ |
| 27 | 27 | public function __invoke(ContainerInterface $container, $requestedName, array $options = null): ReCaptcha |
| 28 | 28 | { |
| 29 | - $recaptchaConfig = $container->get('config')['recaptcha']; |
|
| 30 | - return new ReCaptcha($recaptchaConfig['private_key']); |
|
| 29 | + $recaptchaConfig = $container->get('config')[ 'recaptcha' ]; |
|
| 30 | + return new ReCaptcha($recaptchaConfig[ 'private_key' ]); |
|
| 31 | 31 | } |
| 32 | 32 | } |