Completed
Push — master ( 7cecbb...791ec7 )
by Oleg
07:00
created
src/MenuServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
103 103
 
104 104
     protected function registerRenderSystem()
105 105
     {
106
-        $this->app->bind('menu.render', function (Container $app) {
106
+        $this->app->bind('menu.render', function(Container $app) {
107 107
             $config = $app['config']->get('menu');
108 108
             $key = $config['template-system'];
109 109
             $available = $config['available-template-systems'];
Please login to merge, or discard this patch.
tests/stub/another.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,18 +1,18 @@
 block discarded – undo
1 1
 <div class="div-menu">
2 2
     <?php if ($menu) :?>
3
-        <<?=$menu->getType() . $menu->buildAttributes();?>>
3
+        <<?=$menu->getType() . $menu->buildAttributes(); ?>>
4 4
             <?php foreach ($menu->all() as $element) :?>
5
-                <?php $isGroup = $element instanceof \Malezha\Menu\Contracts\SubMenu;?>
6
-                <?php if ($isGroup) $item = $element->getItem(); else $item = $element;?>
5
+                <?php $isGroup = $element instanceof \Malezha\Menu\Contracts\SubMenu; ?>
6
+                <?php if ($isGroup) $item = $element->getItem(); else $item = $element; ?>
7 7
                 <?php if ($item->canDisplay()) :?>
8
-                    <li<?=$item->buildAttributes();?>>
9
-                        <a href="<?=$item->getLink()->getUrl();?>"<?=$item->getLink()->buildAttributes();?>>
10
-                            <?=$item->getLink()->getTitle();?>
8
+                    <li<?=$item->buildAttributes(); ?>>
9
+                        <a href="<?=$item->getLink()->getUrl(); ?>"<?=$item->getLink()->buildAttributes(); ?>>
10
+                            <?=$item->getLink()->getTitle(); ?>
11 11
                         </a>
12
-                        <?php if ($isGroup) echo $element->getMenu()->render($renderView);?>
12
+                        <?php if ($isGroup) echo $element->getMenu()->render($renderView); ?>
13 13
                     </li>
14
-                <?php endif;?>
15
-            <?php endforeach;?>
16
-        </<?=$menu->getType();?>>
17
-    <?php endif;?>
14
+                <?php endif; ?>
15
+            <?php endforeach; ?>
16
+        </<?=$menu->getType(); ?>>
17
+    <?php endif; ?>
18 18
 </div>
19 19
\ No newline at end of file
Please login to merge, or discard this patch.
views/view.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <?php if ($menu) :?>
2
-    <<?=$menu->getType() . $menu->buildAttributes();?>>
2
+    <<?=$menu->getType() . $menu->buildAttributes(); ?>>
3 3
         <?php foreach ($menu->all() as $element) :?>
4
-            <?php $isGroup = $element instanceof \Malezha\Menu\Contracts\SubMenu;?>
5
-            <?php if ($isGroup) $item = $element->getItem(); else $item = $element;?>
4
+            <?php $isGroup = $element instanceof \Malezha\Menu\Contracts\SubMenu; ?>
5
+            <?php if ($isGroup) $item = $element->getItem(); else $item = $element; ?>
6 6
             <?php if ($item->canDisplay()) :?>
7
-                <li<?=$item->buildAttributes();?>>
8
-                    <a href="<?=$item->getLink()->getUrl();?>"<?=$item->getLink()->buildAttributes();?>>
9
-                        <?=$item->getLink()->getTitle();?>
7
+                <li<?=$item->buildAttributes(); ?>>
8
+                    <a href="<?=$item->getLink()->getUrl(); ?>"<?=$item->getLink()->buildAttributes(); ?>>
9
+                        <?=$item->getLink()->getTitle(); ?>
10 10
                     </a>
11
-                    <?php if ($isGroup) echo $element->getMenu()->render($renderView);?>
11
+                    <?php if ($isGroup) echo $element->getMenu()->render($renderView); ?>
12 12
                 </li>
13
-            <?php endif;?>
14
-        <?php endforeach;?>
15
-    </<?=$menu->getType();?>>
16
-<?php endif;?>
17 13
\ No newline at end of file
14
+            <?php endif; ?>
15
+        <?php endforeach; ?>
16
+    </<?=$menu->getType(); ?>>
17
+<?php endif; ?>
18 18
\ No newline at end of file
Please login to merge, or discard this patch.
tests/BuilderTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
         
201 201
         $builder = $this->builderFactory();
202 202
         $builder->create('index', 'Index Page', url('/'));
203
-        $builder->submenu('group', function(Item $item){}, function(Builder $menu) {
203
+        $builder->submenu('group', function(Item $item) {}, function(Builder $menu) {
204 204
             $menu->create('one', 'One', url('/one'));
205 205
         });
206 206
 
@@ -226,11 +226,11 @@  discard block
 block discarded – undo
226 226
         $builder->create('index', 'Index Page', url('/'));
227 227
         $builder->create('logout', 'logout', url('logout'));
228 228
         
229
-        $builder->insertAfter('index', function (Builder $builder) {
229
+        $builder->insertAfter('index', function(Builder $builder) {
230 230
             $builder->create('users', 'Users', url('users'));
231 231
         });
232 232
         
233
-        $builder->insertBefore('users', function (Builder $builder) {
233
+        $builder->insertBefore('users', function(Builder $builder) {
234 234
             $builder->create('profile', 'Profile', url('profile'));
235 235
         });
236 236
 
Please login to merge, or discard this patch.