Completed
Branch master (b140cc)
by Alejandro
07:49
created
src/Console/Command/LongTaskCommandFactory.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Console/Command/LongTasksCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Acelaya\Website\Console\Command;
5 5
 
Please login to merge, or discard this patch.
src/Console/Factory/ApplicationFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Console/Task/BlogFeedConsumerTask.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Acelaya\Website\Console\Task;
5 5
 
Please login to merge, or discard this patch.
src/Console/Task/LongTaskInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Acelaya\Website\Console\Task;
5 5
 
Please login to merge, or discard this patch.
src/Options/SmtpOptions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Acelaya\Website\Options;
5 5
 
Please login to merge, or discard this patch.
src/Options/MailOptions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Acelaya\Website\Options;
5 5
 
Please login to merge, or discard this patch.
src/Options/Factory/MailOptionsFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Factory/RecaptchaFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.