| Conditions | 5 |
| Paths | 7 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 30 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 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 | } |
||
| 39 |