Completed
Push — master ( 3afbe4...79027c )
by Oleg
07:17
created
tests/stub/directory/view.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,1 +1,1 @@
 block discarded – undo
1
-Hello, <?php echo $menu;?> builder!
2 1
\ No newline at end of file
2
+Hello, <?php echo $menu; ?> builder!
3 3
\ No newline at end of file
Please login to merge, or discard this patch.
tests/stub/text_element.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,1 +1,1 @@
 block discarded – undo
1
-<div<?php echo $attributes;?>><?php echo $text;?></div>
2 1
\ No newline at end of file
2
+<div<?php echo $attributes; ?>><?php echo $text; ?></div>
3 3
\ No newline at end of file
Please login to merge, or discard this patch.
views/view.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 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 4
             <?php if ($element instanceof \Malezha\Menu\Contracts\ElementFactory) $element = $element->build(); ?>
5
-            <?= $element->render($renderView);?>
6
-        <?php endforeach;?>
7
-    </<?= $menu->getType();?>>
8
-<?php endif;?>
9 5
\ No newline at end of file
6
+            <?= $element->render($renderView); ?>
7
+        <?php endforeach; ?>
8
+    </<?= $menu->getType(); ?>>
9
+<?php endif; ?>
10 10
\ No newline at end of file
Please login to merge, or discard this patch.
views/elements/submenu.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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; ?>
Please login to merge, or discard this patch.
views/elements/link.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,3 +1,3 @@
 block discarded – undo
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; ?>
Please login to merge, or discard this patch.
views/elements/text.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,3 +1,3 @@
 block discarded – undo
1 1
 <?php if ($canDisplay) :?>
2
-<li<?=$attributes;?>><?=$text;?></li>
3
-<?php endif;?>
2
+<li<?=$attributes; ?>><?=$text; ?></li>
3
+<?php endif; ?>
Please login to merge, or discard this patch.
src/MenuServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 
83 83
     protected function registerRenderSystem()
84 84
     {
85
-        $this->app->bind('menu.render', function (Container $app) {
85
+        $this->app->bind('menu.render', function(Container $app) {
86 86
             $config = $app->make(Repository::class)->get('menu');
87 87
             $key = $config['default'];
88 88
             $available = $config['renders'];
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 
99 99
     protected function registerComparativeUrl()
100 100
     {
101
-        $this->app->singleton('menu.compare-url', function (Container $app) {
101
+        $this->app->singleton('menu.compare-url', function(Container $app) {
102 102
             return $app->make(ComparativeUrl::class, [
103 103
                 'skippedPaths' => $app->make(Repository::class)->get('menu.skippedPaths'),
104 104
             ]);
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 
109 109
     protected function registerFromArrayBuilder()
110 110
     {
111
-        $this->app->singleton('menu.from-array-builder', function (Container $app) {
111
+        $this->app->singleton('menu.from-array-builder', function(Container $app) {
112 112
             return $app->make(FromArrayBuilder::class);
113 113
         });
114 114
         $this->app->alias('menu.from-array-builder', FromArrayBuilderContract::class);
Please login to merge, or discard this patch.
src/Builder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
 
93 93
         $result = call_if_callable($callback, $factory);
94 94
 
95
-        if (! $result instanceof Element) {
95
+        if (!$result instanceof Element) {
96 96
             throw new \RuntimeException("Result of callback must be [" . Element::class . "]");
97 97
         }
98 98
 
Please login to merge, or discard this patch.
src/Support/FromArrayBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
         foreach ($array['elements'] as $key => $element) {
72 72
             $class = $aliases[$element['type']];
73 73
 
74
-            $builder->create($key, $class, function (ElementFactory $factory) use ($class, $element) {
74
+            $builder->create($key, $class, function(ElementFactory $factory) use ($class, $element) {
75 75
                 // If element is submenu
76 76
                 if ($this->isBuilder($class)) {
77 77
                     $element['builder'] = $this->build($element['builder']);
Please login to merge, or discard this patch.