Completed
Push — master ( e84808...5a9d2e )
by Oleg
07:58
created
src/Builder.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -350,7 +350,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
tests/TestCase.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -30,6 +30,9 @@
 block discarded – undo
30 30
         }
31 31
     }
32 32
     
33
+    /**
34
+     * @param string $file
35
+     */
33 36
     protected function getStub($file)
34 37
     {
35 38
         return file_get_contents(__DIR__ . '/stub/' . $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
@@ -325,14 +325,14 @@  discard block
 block discarded – undo
325 325
             $factory->url = url('logout');
326 326
         });
327 327
         
328
-        $builder->insertAfter('index', function (Builder $builder) {
328
+        $builder->insertAfter('index', function(Builder $builder) {
329 329
             $builder->create('users', Link::class, function(LinkFactory $factory) {
330 330
                 $factory->title = 'Users';
331 331
                 $factory->url = url('users');
332 332
             });
333 333
         });
334 334
         
335
-        $builder->insertBefore('users', function (Builder $builder) {
335
+        $builder->insertBefore('users', function(Builder $builder) {
336 336
             $builder->create('profile', Link::class, function(LinkFactory $factory) {
337 337
                 $factory->title = 'Profile';
338 338
                 $factory->url = url('profile');
@@ -374,7 +374,7 @@  discard block
 block discarded – undo
374 374
             });
375 375
         });
376 376
         $builder->create('settings', Link::class, function(LinkFactory $factory) {
377
-            $factory->displayRule = function () {return false;};
377
+            $factory->displayRule = function() {return false; };
378 378
             $factory->title = 'Settings';
379 379
             $factory->url = url('/settings');
380 380
         });
Please login to merge, or discard this patch.
tests/ElementTests/TextTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
         $factory = $this->factory();
68 68
         $factory->text = 'Serialize';
69 69
         $factory->attributes->put('class', 'serialized');
70
-        $factory->displayRule = function () use ($tmp) {
70
+        $factory->displayRule = function() use ($tmp) {
71 71
             return $tmp === 0;
72 72
         };
73 73
         $element = $factory->build();
Please login to merge, or discard this patch.
tests/stub/another.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <div class="div-menu">
2 2
     <?php if ($menu) :?>
3
-        <<?php echo $menu->getType() . $menu->buildAttributes();?>>
3
+        <<?php echo $menu->getType() . $menu->buildAttributes(); ?>>
4 4
             <?php foreach ($menu->all() as $element) :?>
5
-                <?php echo $element->render($renderView);?>
6
-            <?php endforeach;?>
7
-        </<?php echo $menu->getType();?>>
8
-    <?php endif;?>
5
+                <?php echo $element->render($renderView); ?>
6
+            <?php endforeach; ?>
7
+        </<?php echo $menu->getType(); ?>>
8
+    <?php endif; ?>
9 9
 </div>
10 10
\ No newline at end of file
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<?php echo $attributes;?>><a href="<?php echo $url;?>"<?php echo $linkAttributes;?>><?php echo $title;?></a></li>
3
-<?php endif;?>
2
+<li<?php echo $attributes; ?>><a href="<?php echo $url; ?>"<?php echo $linkAttributes; ?>><?php echo $title; ?></a></li>
3
+<?php endif; ?>
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<?php echo $attributes;?>>
3
-    <a href="<?php echo $url;?>"<?php echo $linkAttributes;?>><?php echo $title;?></a>
4
-    <?php echo $builder->render($renderView);?>
2
+<li<?php echo $attributes; ?>>
3
+    <a href="<?php echo $url; ?>"<?php echo $linkAttributes; ?>><?php echo $title; ?></a>
4
+    <?php echo $builder->render($renderView); ?>
5 5
 </li>
6
-<?php endif;?>
6
+<?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<?php echo $attributes;?>><?php echo $text;?></li>
3
-<?php endif;?>
2
+<li<?php echo $attributes; ?>><?php echo $text; ?></li>
3
+<?php endif; ?>
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,7 +1,7 @@
 block discarded – undo
1 1
 <?php if ($menu) :?>
2
-    <<?php echo $menu->getType() . $menu->buildAttributes();?>>
2
+    <<?php echo $menu->getType() . $menu->buildAttributes(); ?>>
3 3
         <?php foreach ($menu->all() as $element) :?>
4
-            <?php echo $element->render($renderView);?>
5
-        <?php endforeach;?>
6
-    </<?php echo $menu->getType();?>>
7
-<?php endif;?>
8 4
\ No newline at end of file
5
+            <?php echo $element->render($renderView); ?>
6
+        <?php endforeach; ?>
7
+    </<?php echo $menu->getType(); ?>>
8
+<?php endif; ?>
9 9
\ No newline at end of file
Please login to merge, or discard this patch.