Completed
Branch master (22d974)
by Michael
01:55
created
Category
src/Manager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
     /**
17 17
      * @var array
18 18
      */
19
-    protected $menus = [ ];
19
+    protected $menus = [];
20 20
 
21 21
 
22 22
     /**
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      */
32 32
     public function init($name)
33 33
     {
34
-        if (! isset($this->menus[$name])) {
34
+        if (!isset($this->menus[$name])) {
35 35
             $this->menus[$name] = new Menu();
36 36
         }
37 37
 
Please login to merge, or discard this patch.
src/Menu.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,11 +41,11 @@  discard block
 block discarded – undo
41 41
      * @param  string|null $label
42 42
      * @param  array $options
43 43
      */
44
-    public function __construct($label = null, array $options = [ ])
44
+    public function __construct($label = null, array $options = [])
45 45
     {
46 46
         $this->label   = $label;
47 47
         $this->items   = new Collection();
48
-        $this->options = array_merge([ 'weight' => 0, ], $options);
48
+        $this->options = array_merge(['weight' => 0, ], $options);
49 49
     }
50 50
 
51 51
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      *
85 85
      * @return $this
86 86
      */
87
-    public function link($item, $link, array $options = [ ])
87
+    public function link($item, $link, array $options = [])
88 88
     {
89 89
         $this->items()->push(new MenuItem($item, $link, $options));
90 90
 
Please login to merge, or discard this patch.
src/MenuItem.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,11 +36,11 @@
 block discarded – undo
36 36
      * @param  $link
37 37
      * @param  array $options
38 38
      */
39
-    public function __construct($label, $link, array $options = [ ])
39
+    public function __construct($label, $link, array $options = [])
40 40
     {
41 41
         $this->label   = $label;
42 42
         $this->link    = $link;
43
-        $this->options = array_merge([ 'weight' => 0, ], $options);
43
+        $this->options = array_merge(['weight' => 0, ], $options);
44 44
     }
45 45
 
46 46
 
Please login to merge, or discard this patch.
src/Presenters/UnorderedListPresenter.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 render(Menu $menu)
27 27
     {
28
-        $output  = '<ul>';
28
+        $output = '<ul>';
29 29
 
30 30
         foreach ($menu->items() as $item) {
31 31
             if ($item instanceof Menu) {
Please login to merge, or discard this patch.
src/SimpleMenuServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
      */
24 24
     public function register()
25 25
     {
26
-        $this->app->singleton(Manager::class, function () {
26
+        $this->app->singleton(Manager::class, function() {
27 27
             return new Manager();
28 28
         });
29 29
     }
Please login to merge, or discard this patch.