@@ -10,29 +10,29 @@ |
||
10 | 10 | */ |
11 | 11 | class MailHelper extends HtmlHelper { |
12 | 12 | |
13 | - public function initialize(array $config) { |
|
14 | - parent::initialize($config); |
|
15 | - } |
|
16 | - |
|
17 | - public function setDefaultUrlParams($params, $merge = true) { |
|
18 | - $this->setConfig('urlParams', $params, $merge); |
|
19 | - } |
|
20 | - |
|
21 | - public function link($title, $url = null, array $options = []) { |
|
22 | - if (is_array($url)) { |
|
23 | - if (!isset($url['?'])) { |
|
24 | - $url['?'] = []; |
|
25 | - } |
|
26 | - if (isset($options['urlParams'])) { |
|
27 | - if (is_array($options['urlParams'])) { |
|
28 | - $url['?'] = array_merge($url['?'], $options['urlParams']); |
|
29 | - } |
|
30 | - } else { |
|
31 | - $url['?'] = array_merge($url['?'], (array)$this->getConfig('urlParams')); |
|
32 | - } |
|
33 | - } |
|
34 | - |
|
35 | - return parent::link($title, $url, $options); |
|
36 | - } |
|
13 | + public function initialize(array $config) { |
|
14 | + parent::initialize($config); |
|
15 | + } |
|
16 | + |
|
17 | + public function setDefaultUrlParams($params, $merge = true) { |
|
18 | + $this->setConfig('urlParams', $params, $merge); |
|
19 | + } |
|
20 | + |
|
21 | + public function link($title, $url = null, array $options = []) { |
|
22 | + if (is_array($url)) { |
|
23 | + if (!isset($url['?'])) { |
|
24 | + $url['?'] = []; |
|
25 | + } |
|
26 | + if (isset($options['urlParams'])) { |
|
27 | + if (is_array($options['urlParams'])) { |
|
28 | + $url['?'] = array_merge($url['?'], $options['urlParams']); |
|
29 | + } |
|
30 | + } else { |
|
31 | + $url['?'] = array_merge($url['?'], (array)$this->getConfig('urlParams')); |
|
32 | + } |
|
33 | + } |
|
34 | + |
|
35 | + return parent::link($title, $url, $options); |
|
36 | + } |
|
37 | 37 | |
38 | 38 | } |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Burzum\ZurbInky\View\Helper; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Burzum\ZurbInky\View; |
5 | 5 |