| @@ 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 | ||
| @@ 216-224 (lines=9) @@ | ||
| 213 | */ |
|
| 214 | public function url($url, $title, $order = 0, $attributes = array()) |
|
| 215 | { |
|
| 216 | if (func_num_args() === 3) { |
|
| 217 | $arguments = func_get_args(); |
|
| 218 | ||
| 219 | return $this->add([ |
|
| 220 | 'url' => array_get($arguments, 0), |
|
| 221 | 'title' => array_get($arguments, 1), |
|
| 222 | 'attributes' => array_get($arguments, 2), |
|
| 223 | ]); |
|
| 224 | } |
|
| 225 | ||
| 226 | return $this->add(compact('url', 'title', 'order', 'attributes')); |
|
| 227 | } |
|