@@ -29,12 +29,12 @@ discard block |
||
| 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 |
||
| 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); |