Completed
Branch master (15f051)
by Oleg
05:13
created
src/Menu/Builder.php 2 patches
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
     }
115 115
 
116 116
     /**
117
-     * @return array
117
+     * @return Collection
118 118
      */
119 119
     public function values()
120 120
     {
@@ -198,12 +198,12 @@  discard block
 block discarded – undo
198 198
     }
199 199
 
200 200
     /**
201
-     * @param $name
202
-     * @param $title
203
-     * @param $url
201
+     * @param string $name
202
+     * @param string $title
203
+     * @param string $url
204 204
      * @param array $attributes
205 205
      * @param array $linkAttributes
206
-     * @param null $callback
206
+     * @param callable|null $callback
207 207
      * @return \Malezha\Menu\Item
208 208
      */
209 209
     protected function newItem($name, $title, $url, $attributes = [], $linkAttributes = [], $callback = null)
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
110 110
      */
111 111
     public function items()
112 112
     {
113
-       return $this->items;
113
+        return $this->items;
114 114
     }
115 115
 
116 116
     /**
Please login to merge, or discard this patch.
src/Menu/MenuServiceProvider.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
     /**
46 46
      * Get the services provided by the provider.
47 47
      *
48
-     * @return array
48
+     * @return string[]
49 49
      */
50 50
     public function provides()
51 51
     {
Please login to merge, or discard this 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/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/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.