| Conditions | 3 |
| Paths | 3 |
| Total Lines | 19 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php namespace Humweb\Breadcrumbs; |
||
| 17 | public function render() |
||
| 18 | { |
||
| 19 | $pages = array(); |
||
| 20 | $crumbs = $this->breadcrumb->toArray(); |
||
| 21 | |||
| 22 | foreach ($crumbs as $item) |
||
| 23 | { |
||
|
|
|||
| 24 | |||
| 25 | if ( empty($item['url']) ) |
||
| 26 | { |
||
| 27 | $pages[] = $this->getActiveLink($item); |
||
| 28 | } |
||
| 29 | else |
||
| 30 | { |
||
| 31 | $pages[] = $this->getLink($item); |
||
| 32 | } |
||
| 33 | } |
||
| 34 | return $this->getWrapper(implode('', $pages)); |
||
| 35 | } |
||
| 36 | |||
| 52 |