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