| @@ 427-435 (lines=9) @@ | ||
| 424 | */ |
|
| 425 | public function url($url, $title, $order = 0, $attributes = array()) |
|
| 426 | { |
|
| 427 | if (func_num_args() == 3) { |
|
| 428 | $arguments = func_get_args(); |
|
| 429 | ||
| 430 | return $this->add([ |
|
| 431 | 'url' => $this->formatUrl(array_get($arguments, 0)), |
|
| 432 | 'title' => array_get($arguments, 1), |
|
| 433 | 'attributes' => array_get($arguments, 2), |
|
| 434 | ]); |
|
| 435 | } |
|
| 436 | ||
| 437 | $url = $this->formatUrl($url); |
|
| 438 | ||
| @@ 251-259 (lines=9) @@ | ||
| 248 | */ |
|
| 249 | public function url($url, $title, $order = 0, $attributes = array()) |
|
| 250 | { |
|
| 251 | if (func_num_args() === 3) { |
|
| 252 | $arguments = func_get_args(); |
|
| 253 | ||
| 254 | return $this->add([ |
|
| 255 | 'url' => $this->formatUrl(array_get($arguments, 0)), |
|
| 256 | 'title' => array_get($arguments, 1), |
|
| 257 | 'attributes' => array_get($arguments, 2), |
|
| 258 | ]); |
|
| 259 | } |
|
| 260 | ||
| 261 | $url = $this->formatUrl($url); |
|
| 262 | ||