Completed
Push — master ( 08a911...5350f0 )
by Alejandro
02:50
created
src/Service/RouteAssembler.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,19 +31,19 @@
 block discarded – undo
31 31
      * @param bool $inherit Tells if route and query params should be inherited from current route
32 32
      * @return string
33 33
      */
34
-    public function assembleUrl($name = null, $routeParams = [], $queryParams = [], $inherit = false)
34
+    public function assembleUrl($name = null, $routeParams = [ ], $queryParams = [ ], $inherit = false)
35 35
     {
36 36
         $routeResult = $this->getCurrentRouteResult();
37 37
         $name = $name ?: $routeResult->getMatchedRouteName();
38 38
 
39 39
         if (is_bool($routeParams)) {
40 40
             $inherit = $routeParams;
41
-            $routeParams = [];
41
+            $routeParams = [ ];
42 42
         }
43 43
 
44 44
         if (is_bool($queryParams)) {
45 45
             $inherit = $queryParams;
46
-            $queryParams = [];
46
+            $queryParams = [ ];
47 47
         }
48 48
 
49 49
         if ($inherit) {
Please login to merge, or discard this patch.
src/Service/ContactService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
         return \Swift_Message::newInstance($this->options->getSubject())
46 46
                              ->setTo($this->options->getTo())
47 47
                              ->setFrom($this->options->getFrom())
48
-                             ->setReplyTo($messageData['email'])
48
+                             ->setReplyTo($messageData[ 'email' ])
49 49
                              ->setBody($this->composeBody($messageData), 'text/html');
50 50
     }
51 51
 
Please login to merge, or discard this patch.
src/Service/RouteAssemblerInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
      * @param bool $inherit Tells if route and query params should be inherited from current route
16 16
      * @return string
17 17
      */
18
-    public function assembleUrl($name = null, $routeParams = [], $queryParams = [], $inherit = false);
18
+    public function assembleUrl($name = null, $routeParams = [ ], $queryParams = [ ], $inherit = false);
19 19
 
20 20
     /**
21 21
      * @return RouteResult
Please login to merge, or discard this patch.
src/Factory/TranslatorFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 {
9 9
     public function __invoke(ContainerInterface $container)
10 10
     {
11
-        $translatorConfig = $container->get('config')['translator'];
11
+        $translatorConfig = $container->get('config')[ 'translator' ];
12 12
         return Translator::factory($translatorConfig);
13 13
     }
14 14
 }
Please login to merge, or discard this patch.
src/Factory/RendererFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,9 +24,9 @@
 block discarded – undo
24 24
         $twig->addExtension(new NavigationExtension(
25 25
             $container->get('translator'),
26 26
             $container->get(RouteAssembler::class),
27
-            $container->get('config')['navigation']
27
+            $container->get('config')[ 'navigation' ]
28 28
         ));
29
-        $twig->addExtension(new RecaptchaExtension($container->get('config')['recaptcha']));
29
+        $twig->addExtension(new RecaptchaExtension($container->get('config')[ 'recaptcha' ]));
30 30
 
31 31
         return new Twig($twig);
32 32
     }
Please login to merge, or discard this patch.
src/Factory/RecaptchaFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 {
9 9
     public function __invoke(ContainerInterface $container)
10 10
     {
11
-        $recaptchaConfig = $container->get('config')['recaptcha'];
12
-        return new ReCaptcha($recaptchaConfig['private_key']);
11
+        $recaptchaConfig = $container->get('config')[ 'recaptcha' ];
12
+        return new ReCaptcha($recaptchaConfig[ 'private_key' ]);
13 13
     }
14 14
 }
Please login to merge, or discard this patch.
src/Factory/SwiftMailerFactory.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -7,11 +7,11 @@
 block discarded – undo
7 7
 {
8 8
     public function __invoke(ContainerInterface $container)
9 9
     {
10
-        $mailConfig = $container->get('config')['mail'];
11
-        $smtp = $mailConfig['smtp'];
12
-        $transport = \Swift_SmtpTransport::newInstance($smtp['server'], $smtp['port'], $smtp['ssl'])
13
-                                         ->setUsername($smtp['username'])
14
-                                         ->setPassword($smtp['password']);
10
+        $mailConfig = $container->get('config')[ 'mail' ];
11
+        $smtp = $mailConfig[ 'smtp' ];
12
+        $transport = \Swift_SmtpTransport::newInstance($smtp[ 'server' ], $smtp[ 'port' ], $smtp[ 'ssl' ])
13
+                                         ->setUsername($smtp[ 'username' ])
14
+                                         ->setPassword($smtp[ 'password' ]);
15 15
         return new \Swift_Mailer($transport);
16 16
     }
17 17
 }
Please login to merge, or discard this patch.
config/autoload/middleware_pipeline.global.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,8 @@
 block discarded – undo
5 5
 return [
6 6
 
7 7
     'middleware_pipeline' => [
8
-        ['middleware' => CacheMiddleware::class],
9
-        ['middleware' => LanguageMiddleware::class],
8
+        [ 'middleware' => CacheMiddleware::class ],
9
+        [ 'middleware' => LanguageMiddleware::class ],
10 10
         Zend\Expressive\Container\ApplicationFactory::ROUTING_MIDDLEWARE,
11 11
         Zend\Expressive\Container\ApplicationFactory::DISPATCH_MIDDLEWARE,
12 12
     ]
Please login to merge, or discard this patch.
config/container.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,5 +3,5 @@
 block discarded – undo
3 3
 
4 4
 // Create a ServiceManager from service_manager config and register the merged config as a service
5 5
 $config = include __DIR__ . '/config.php';
6
-$config['service_manager']['services']['config'] = $config;
7
-return new ServiceManager(isset($config['service_manager']) ? $config['service_manager'] : []);
6
+$config[ 'service_manager' ][ 'services' ][ 'config' ] = $config;
7
+return new ServiceManager(isset($config[ 'service_manager' ]) ? $config[ 'service_manager' ] : [ ]);
Please login to merge, or discard this patch.