Completed
Branch master (15f051)
by Oleg
05:13
created
src/Menu/Menu.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      */
26 26
     public function make($name, $type = 'ul', $options = [], $callback)
27 27
     {
28
-        if(is_callable($callback)) {
28
+        if (is_callable($callback)) {
29 29
             $menu = new Builder($name, $type, $options);
30 30
             call_user_func($callback, $menu);
31 31
 
Please login to merge, or discard this patch.
src/Menu/MenuServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
      */
21 21
     public function boot()
22 22
     {
23
-        $this->loadViewsFrom(__DIR__.'/../views', 'menu');
23
+        $this->loadViewsFrom(__DIR__ . '/../views', 'menu');
24 24
 
25 25
         $this->publishes([
26 26
             __DIR__ . '/../views'           => base_path('resources/views/vendor/menu'),
@@ -35,11 +35,11 @@  discard block
 block discarded – undo
35 35
      */
36 36
     public function register()
37 37
     {
38
-        $this->app->singleton('menu', function ($app) {
38
+        $this->app->singleton('menu', function($app) {
39 39
             return new Menu();
40 40
         });
41 41
 
42
-        $this->mergeConfigFrom(__DIR__ . '/../config/menu.php'   , 'menu');
42
+        $this->mergeConfigFrom(__DIR__ . '/../config/menu.php', 'menu');
43 43
     }
44 44
 
45 45
     /**
Please login to merge, or discard this patch.
src/Menu/Item.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@
 block discarded – undo
53 53
     public function buildAttributes($attributes = [])
54 54
     {
55 55
         $attributes = $this->isActive() ?
56
-            Attributes::mergeArrayValues($this->builder->activeAttributes(), $attributes) :
57
-            $attributes;
56
+            Attributes::mergeArrayValues($this->builder->activeAttributes(), $attributes) : $attributes;
58 57
 
59 58
         return $this->attributes->build($attributes);
60 59
     }
Please login to merge, or discard this patch.