@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use Illuminate\Contracts\Container\Container; |
| 6 | 6 | use Malezha\Menu\Contracts\Element; |
| 7 | 7 | use Malezha\Menu\Contracts\ElementFactory; |
| 8 | -use Malezha\Menu\Traits\DisplayRule; |
|
| 9 | 8 | use Opis\Closure\SerializableClosure; |
| 10 | 9 | |
| 11 | 10 | /** |
@@ -95,7 +95,7 @@ |
||
| 95 | 95 | $result = call_user_func($callback, $factory); |
| 96 | 96 | $result = is_null($result) ? $factory : $result; |
| 97 | 97 | |
| 98 | - if (! $result instanceof ElementFactory && ! $result instanceof Element) { |
|
| 98 | + if (!$result instanceof ElementFactory && !$result instanceof Element) { |
|
| 99 | 99 | throw new \RuntimeException("Result of callback must be [" . |
| 100 | 100 | Element::class . "] or [" . ElementFactory::class . "]"); |
| 101 | 101 | } |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php if ($canDisplay) :?> |
| 2 | -<li<?=$attributes;?>> |
|
| 3 | - <a href="<?=$url;?>"<?=$linkAttributes;?>><?=$title;?></a> |
|
| 4 | - <?=$builder->render($renderView);?> |
|
| 2 | +<li<?=$attributes; ?>> |
|
| 3 | + <a href="<?=$url; ?>"<?=$linkAttributes; ?>><?=$title; ?></a> |
|
| 4 | + <?=$builder->render($renderView); ?> |
|
| 5 | 5 | </li> |
| 6 | -<?php endif;?> |
|
| 6 | +<?php endif; ?> |
|
@@ -1,3 +1,3 @@ |
||
| 1 | 1 | <?php if ($canDisplay) :?> |
| 2 | -<li<?=$attributes;?>><a href="<?=$url;?>"<?=$linkAttributes;?>><?=$title;?></a></li> |
|
| 3 | -<?php endif;?> |
|
| 2 | +<li<?=$attributes; ?>><a href="<?=$url; ?>"<?=$linkAttributes; ?>><?=$title; ?></a></li> |
|
| 3 | +<?php endif; ?> |
|
@@ -1,3 +1,3 @@ |
||
| 1 | 1 | <?php if ($canDisplay) :?> |
| 2 | -<li<?=$attributes;?>><?=$text;?></li> |
|
| 3 | -<?php endif;?> |
|
| 2 | +<li<?=$attributes; ?>><?=$text; ?></li> |
|
| 3 | +<?php endif; ?> |
|