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