Completed
Push — master ( af58be...5693bf )
by Stefano
17s queued 11s
created
src/Routing/Route/I18nRoute.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -29,12 +29,12 @@  discard block
 block discarded – undo
29 29
     /**
30 30
      * {@inheritDoc}
31 31
      */
32
-    public function __construct($template, $defaults = [], array $options = [])
32
+    public function __construct($template, $defaults = [ ], array $options = [ ])
33 33
     {
34 34
         parent::__construct($this->buildTemplate($template), $defaults, $options);
35 35
 
36
-        if (empty($options['lang'])) {
37
-            $this->setPatterns(['lang' => implode('|', array_keys($this->getLanguages()))]);
36
+        if (empty($options[ 'lang' ])) {
37
+            $this->setPatterns([ 'lang' => implode('|', array_keys($this->getLanguages())) ]);
38 38
         }
39 39
     }
40 40
 
@@ -62,10 +62,10 @@  discard block
 block discarded – undo
62 62
     /**
63 63
      * {@inheritDoc}
64 64
      */
65
-    public function match(array $url, array $context = [])
65
+    public function match(array $url, array $context = [ ])
66 66
     {
67 67
         if (!array_key_exists('lang', $url)) {
68
-            $url['lang'] = $this->getLang();
68
+            $url[ 'lang' ] = $this->getLang();
69 69
         }
70 70
 
71 71
         return parent::match($url, $context);
Please login to merge, or discard this patch.