@@ -25,7 +25,7 @@ |
||
| 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 | |
@@ -20,7 +20,7 @@ discard block |
||
| 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 |
||
| 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 | /** |
@@ -53,8 +53,7 @@ |
||
| 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 | } |