Completed
Push — master ( 4895be...67409c )
by Oleg
04:41
created
tests/BuilderTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -336,14 +336,14 @@  discard block
 block discarded – undo
336 336
             $factory->url = url('logout');
337 337
         });
338 338
         
339
-        $builder->insertAfter('index', function (Builder $builder) {
339
+        $builder->insertAfter('index', function(Builder $builder) {
340 340
             $builder->create('users', Link::class, function(LinkFactory $factory) {
341 341
                 $factory->title = 'Users';
342 342
                 $factory->url = url('users');
343 343
             });
344 344
         });
345 345
         
346
-        $builder->insertBefore('users', function (Builder $builder) {
346
+        $builder->insertBefore('users', function(Builder $builder) {
347 347
             $builder->create('profile', Link::class, function(LinkFactory $factory) {
348 348
                 $factory->title = 'Profile';
349 349
                 $factory->url = url('profile');
@@ -358,7 +358,7 @@  discard block
 block discarded – undo
358 358
         $this->expectException(\RuntimeException::class);
359 359
 
360 360
         $builder = $this->builderFactory();
361
-        $builder->insertBefore('not_exist', function (Builder $builder) {});
361
+        $builder->insertBefore('not_exist', function(Builder $builder) {});
362 362
     }
363 363
 
364 364
     public function testInsertExceptionDuplicate()
@@ -374,7 +374,7 @@  discard block
 block discarded – undo
374 374
             $factory->title = 'Some';
375 375
             $factory->url = '/';
376 376
         });
377
-        $builder->insertAfter('home', function (Builder $builder) {
377
+        $builder->insertAfter('home', function(Builder $builder) {
378 378
             $builder->create('some', Text::class, function(TextFactory $factory) {
379 379
                 $factory->text = 'Duplicate some';
380 380
             });
@@ -413,7 +413,7 @@  discard block
 block discarded – undo
413 413
             });
414 414
         });
415 415
         $builder->create('settings', Link::class, function(LinkFactory $factory) {
416
-            $factory->displayRule = function () {return false;};
416
+            $factory->displayRule = function() {return false; };
417 417
             $factory->title = 'Settings';
418 418
             $factory->url = url('/settings');
419 419
         });
Please login to merge, or discard this patch.
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.
src/Element/Link.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 namespace Malezha\Menu\Element;
3 3
 
4 4
 use Illuminate\Container\Container;
5
-use Illuminate\Http\Request;
6 5
 use Malezha\Menu\Contracts\Attributes;
7 6
 use Malezha\Menu\Contracts\ComparativeUrl;
8 7
 use Malezha\Menu\Contracts\DisplayRule as DisplayRuleInterface;
Please login to merge, or discard this patch.
src/MenuServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 
80 80
     protected function registerRenderSystem()
81 81
     {
82
-        $this->app->bind('menu.render', function (Container $app) {
82
+        $this->app->bind('menu.render', function(Container $app) {
83 83
             $config = $app->make(Repository::class)->get('menu');
84 84
             $key = $config['default'];
85 85
             $available = $config['renders'];
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 
96 96
     protected function registerComparativeUrl()
97 97
     {
98
-        $this->app->singleton('menu.compare-url', function (Container $app) {
98
+        $this->app->singleton('menu.compare-url', function(Container $app) {
99 99
             return $app->make(ComparativeUrl::class, [
100 100
                 'skippedPaths' => $app->make(Repository::class)->get('menu.skippedPaths'),
101 101
             ]);
Please login to merge, or discard this patch.