@@ -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 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Burzum\ZurbInky\View\Helper; |
5 | 5 | |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | $url['?'] = array_merge($url['?'], $options['urlParams']); |
29 | 29 | } |
30 | 30 | } else { |
31 | - $url['?'] = array_merge($url['?'], (array)$this->getConfig('urlParams')); |
|
31 | + $url['?'] = array_merge($url['?'], (array) $this->getConfig('urlParams')); |
|
32 | 32 | } |
33 | 33 | } |
34 | 34 |
@@ -104,7 +104,6 @@ |
||
104 | 104 | /** |
105 | 105 | * Gets the CSS from a file |
106 | 106 | * |
107 | - * @param string $css CSS File |
|
108 | 107 | * @return string |
109 | 108 | */ |
110 | 109 | protected function _getCssFromFile(string $file) : string |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Burzum\ZurbInky\View; |
5 | 5 | |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | */ |
110 | 110 | protected function _getCssFromFile(string $file) : string |
111 | 111 | { |
112 | - $file = WWW_ROOT . $this->Url->css($file, ['timestamp' => false]); |
|
112 | + $file = WWW_ROOT.$this->Url->css($file, ['timestamp' => false]); |
|
113 | 113 | |
114 | 114 | if (!file_exists($file)) { |
115 | 115 | throw new RuntimeException(sprintf('The CSS file `%s` does not exist.', $file)); |