Completed
Push — master ( 39d639...38e886 )
by Oleg
04:40
created
tests/stub/another.blade.php 1 patch
Braces   +6 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,12 @@
 block discarded – undo
2 2
     @if ($menu)
3 3
         <{{ $menu->getType() }}{!! $menu->buildAttributes() !!}>
4 4
         @foreach ($menu->all() as $value)
5
-            <?php $isGroup = $value instanceof \Malezha\Menu\Contracts\Group; if ($isGroup) $item = $value->getItem(); else $item = $value; ?>
5
+            <?php $isGroup = $value instanceof \Malezha\Menu\Contracts\Group; if ($isGroup) {
6
+    $item = $value->getItem();
7
+} else {
8
+    $item = $value;
9
+}
10
+?>
6 11
             @if($item->canDisplay())
7 12
                 <li{!! $item->buildAttributes() !!}>
8 13
                     <a href="{{ $item->getLink()->getUrl() }}"{!! $item->getLink()->buildAttributes() !!}>{!! $item->getLink()->getTitle() !!}</a>
Please login to merge, or discard this patch.