@@ -350,7 +350,7 @@ |
||
| 350 | 350 | } |
| 351 | 351 | |
| 352 | 352 | /** |
| 353 | - * @param $element |
|
| 353 | + * @param string $element |
|
| 354 | 354 | * @return ElementFactory |
| 355 | 355 | */ |
| 356 | 356 | protected function getFactory($element) |
@@ -35,6 +35,7 @@ |
||
| 35 | 35 | |
| 36 | 36 | /** |
| 37 | 37 | * @inheritdoc |
| 38 | + * @param string $view |
|
| 38 | 39 | */ |
| 39 | 40 | public function setView($view) |
| 40 | 41 | { |
@@ -2,7 +2,10 @@ |
||
| 2 | 2 | <?php if ($menu) :?> |
| 3 | 3 | <<?php echo $menu->getType() . $menu->buildAttributes();?>> |
| 4 | 4 | <?php foreach ($menu->all() as $element) :?> |
| 5 | - <?php if ($element instanceof \Malezha\Menu\Contracts\ElementFactory) $element = $element->build(); ?> |
|
| 5 | + <?php if ($element instanceof \Malezha\Menu\Contracts\ElementFactory) { |
|
| 6 | + $element = $element->build(); |
|
| 7 | +} |
|
| 8 | +?> |
|
| 6 | 9 | <?php echo $element->render($renderView);?> |
| 7 | 10 | <?php endforeach;?> |
| 8 | 11 | </<?php echo $menu->getType();?>> |
@@ -1,7 +1,10 @@ |
||
| 1 | 1 | <?php if ($menu) :?> |
| 2 | 2 | <<?= $menu->getType() . $menu->buildAttributes();?>> |
| 3 | 3 | <?php foreach ($menu->all() as $element) :?> |
| 4 | - <?php if ($element instanceof \Malezha\Menu\Contracts\ElementFactory) $element = $element->build(); ?> |
|
| 4 | + <?php if ($element instanceof \Malezha\Menu\Contracts\ElementFactory) { |
|
| 5 | + $element = $element->build(); |
|
| 6 | +} |
|
| 7 | +?> |
|
| 5 | 8 | <?= $element->render($renderView);?> |
| 6 | 9 | <?php endforeach;?> |
| 7 | 10 | </<?= $menu->getType();?>> |