Completed
Push — main ( 9234ee...3f1eec )
by nassim
12:56
created
src/MenuBuilder.php 2 patches
Doc Comments   +11 added lines, -9 removed lines patch added patch discarded remove patch
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
     /**
221 221
      * Determine if the given name in the presenter style.
222 222
      *
223
-     * @param $name
223
+     * @param string|null $name
224 224
      *
225 225
      * @return bool
226 226
      */
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
      *
245 245
      * @param $name
246 246
      *
247
-     * @return mixed
247
+     * @return string
248 248
      */
249 249
     public function getStyle($name)
250 250
     {
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
     /**
257 257
      * Set new presenter class from given alias name.
258 258
      *
259
-     * @param $name
259
+     * @param string|null $name
260 260
      */
261 261
     public function setPresenterFromStyle($name)
262 262
     {
@@ -341,10 +341,10 @@  discard block
 block discarded – undo
341 341
      * Create new menu with dropdown.
342 342
      *
343 343
      * @param $title
344
-     * @param callable $callback
344
+     * @param \Closure $callback
345 345
      * @param array    $attributes
346 346
      *
347
-     * @return $this
347
+     * @return MenuItem
348 348
      */
349 349
     public function dropdown($title, \Closure $callback, $order = null, array $attributes = array())
350 350
     {
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
      * @param array $parameters
377 377
      * @param array $attributes
378 378
      *
379
-     * @return static
379
+     * @return MenuItem
380 380
      */
381 381
     public function route($route, $title, $parameters = array(), $order = null, $attributes = array())
382 382
     {
@@ -422,7 +422,7 @@  discard block
 block discarded – undo
422 422
      * @param $title
423 423
      * @param array $attributes
424 424
      *
425
-     * @return static
425
+     * @return MenuItem
426 426
      */
427 427
     public function url($url, $title, $order = 0, $attributes = array())
428 428
     {
@@ -449,7 +449,7 @@  discard block
 block discarded – undo
449 449
      * Add new divider item.
450 450
      *
451 451
      * @param int $order
452
-     * @return \Spinzar\Menu\MenuItem
452
+     * @return MenuBuilder
453 453
      */
454 454
     public function addDivider($order = null)
455 455
     {
@@ -461,7 +461,8 @@  discard block
 block discarded – undo
461 461
     /**
462 462
      * Add new header item.
463 463
      *
464
-     * @return \Spinzar\Menu\MenuItem
464
+     * @param string $title
465
+     * @return MenuBuilder
465 466
      */
466 467
     public function addHeader($title, $order = null)
467 468
     {
@@ -545,6 +546,7 @@  discard block
 block discarded – undo
545 546
     /**
546 547
      * Render menu via view presenter.
547 548
      *
549
+     * @param string $presenter
548 550
      * @return \Illuminate\View\View
549 551
      */
550 552
     public function renderView($presenter = null)
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      */
125 125
     public function findBy($key, $value)
126 126
     {
127
-        return collect($this->items)->filter(function ($item) use ($key, $value) {
127
+        return collect($this->items)->filter(function($item) use ($key, $value) {
128 128
             return $item->{$key} == $value;
129 129
         })->first();
130 130
     }
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
             
296 296
             foreach ($matches as $match) {
297 297
                 if (array_key_exists($match[1], $this->bindings)) {
298
-                    $key = preg_replace('/' . $match[0] . '/', $this->bindings[$match[1]], $key, 1);
298
+                    $key = preg_replace('/'.$match[0].'/', $this->bindings[$match[1]], $key, 1);
299 299
                 }
300 300
             }
301 301
         }
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
      */
312 312
     protected function resolveItems(array &$items)
313 313
     {
314
-        $resolver = function ($property) {
314
+        $resolver = function($property) {
315 315
             return $this->resolve($property) ?: $property;
316 316
         };
317 317
 
@@ -410,7 +410,7 @@  discard block
 block discarded – undo
410 410
      */
411 411
     protected function formatUrl($url)
412 412
     {
413
-        $uri = !is_null($this->prefixUrl) ? $this->prefixUrl . $url : $url;
413
+        $uri = !is_null($this->prefixUrl) ? $this->prefixUrl.$url : $url;
414 414
 
415 415
         return $uri == '/' ? '/' : ltrim(rtrim($uri, '/'), '/');
416 416
     }
@@ -616,7 +616,7 @@  discard block
 block discarded – undo
616 616
     public function getOrderedItems()
617 617
     {
618 618
         if (config('menu.ordering') || $this->ordering) {
619
-            return $this->toCollection()->sortBy(function ($item) {
619
+            return $this->toCollection()->sortBy(function($item) {
620 620
                 return $item->order;
621 621
             })->all();
622 622
         }
Please login to merge, or discard this patch.
src/Presenters/Admin/Adminlte.php 2 patches
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,6 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
     /**
34 34
      * {@inheritdoc }.
35
+     * @param \Spinzar\Menu\MenuItem $item
35 36
      */
36 37
     public function getActiveState($item, $state = ' class="active"')
37 38
     {
@@ -41,7 +42,7 @@  discard block
 block discarded – undo
41 42
     /**
42 43
      * Get active state on child items.
43 44
      *
44
-     * @param $item
45
+     * @param \Spinzar\Menu\MenuItem $item
45 46
      * @param string $state
46 47
      *
47 48
      * @return null|string
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
      */
12 12
     public function getOpenTagWrapper()
13 13
     {
14
-        return PHP_EOL . '<ul class="sidebar-menu tree" data-widget="tree">' . PHP_EOL;
14
+        return PHP_EOL.'<ul class="sidebar-menu tree" data-widget="tree">'.PHP_EOL;
15 15
     }
16 16
 
17 17
     /**
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
      */
20 20
     public function getCloseTagWrapper()
21 21
     {
22
-        return PHP_EOL . '</ul>' . PHP_EOL;
22
+        return PHP_EOL.'</ul>'.PHP_EOL;
23 23
     }
24 24
 
25 25
     /**
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      */
28 28
     public function getMenuWithoutDropdownWrapper($item)
29 29
     {
30
-        return '<li' . $this->getActiveState($item) . '><a href="' . $item->getUrl() . '" ' . $item->getAttributes() . '>' . $item->getIcon() . ' <span>' . $item->title . '</span></a></li>' . PHP_EOL;
30
+        return '<li'.$this->getActiveState($item).'><a href="'.$item->getUrl().'" '.$item->getAttributes().'>'.$item->getIcon().' <span>'.$item->title.'</span></a></li>'.PHP_EOL;
31 31
     }
32 32
 
33 33
     /**
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      */
65 65
     public function getHeaderWrapper($item)
66 66
     {
67
-        return '<li class="header">' . $item->title . '</li>';
67
+        return '<li class="header">'.$item->title.'</li>';
68 68
     }
69 69
 
70 70
     /**
@@ -72,15 +72,15 @@  discard block
 block discarded – undo
72 72
      */
73 73
     public function getMenuWithDropDownWrapper($item)
74 74
     {
75
-        return '<li class="treeview' . $this->getActiveStateOnChild($item, ' active') . '">
75
+        return '<li class="treeview'.$this->getActiveStateOnChild($item, ' active').'">
76 76
 		          <a href="#">
77
-					' . $item->getIcon() . ' <span>' . $item->title . '</span>
77
+					' . $item->getIcon().' <span>'.$item->title.'</span>
78 78
                     <span class="pull-right-container">
79 79
                       <i class="fa fa-angle-left pull-right"></i>
80 80
                     </span>
81 81
 			      </a>
82 82
 			      <ul class="treeview-menu">
83
-			      	' . $this->getChildMenuItems($item) . '
83
+			      	' . $this->getChildMenuItems($item).'
84 84
 			      </ul>
85 85
 		      	</li>'
86 86
         . PHP_EOL;
@@ -95,15 +95,15 @@  discard block
 block discarded – undo
95 95
      */
96 96
     public function getMultiLevelDropdownWrapper($item)
97 97
     {
98
-        return '<li class="treeview' . $this->getActiveStateOnChild($item, ' active') . '">
98
+        return '<li class="treeview'.$this->getActiveStateOnChild($item, ' active').'">
99 99
 		          <a href="#">
100
-					' . $item->getIcon() . ' <span>' . $item->title . '</span>
100
+					' . $item->getIcon().' <span>'.$item->title.'</span>
101 101
 			      	<span class="pull-right-container">
102 102
                       <i class="fa fa-angle-left pull-right"></i>
103 103
                     </span>
104 104
 			      </a>
105 105
 			      <ul class="treeview-menu">
106
-			      	' . $this->getChildMenuItems($item) . '
106
+			      	' . $this->getChildMenuItems($item).'
107 107
 			      </ul>
108 108
 		      	</li>'
109 109
         . PHP_EOL;
Please login to merge, or discard this patch.
src/Presenters/Admin/Argon.php 2 patches
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,6 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
     /**
47 47
      * {@inheritdoc }.
48
+     * @param \Spinzar\Menu\MenuItem $item
48 49
      */
49 50
     public function getActiveState($item, $state = ' active')
50 51
     {
@@ -54,7 +55,7 @@  discard block
 block discarded – undo
54 55
     /**
55 56
      * Get active state on child items.
56 57
      *
57
-     * @param $item
58
+     * @param \Spinzar\Menu\MenuItem $item
58 59
      * @param string $state
59 60
      *
60 61
      * @return null|string
@@ -67,7 +68,7 @@  discard block
 block discarded – undo
67 68
     /**
68 69
      * Get active state on child items.
69 70
      *
70
-     * @param $item
71
+     * @param \Spinzar\Menu\MenuItem $item
71 72
      * @param string $state
72 73
      *
73 74
      * @return null|string
Please login to merge, or discard this patch.
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
      */
12 12
     public function getOpenTagWrapper()
13 13
     {
14
-        return PHP_EOL . '<div class="navbar-inner">
14
+        return PHP_EOL.'<div class="navbar-inner">
15 15
             <!-- Collapse -->
16 16
             <div class="collapse navbar-collapse" id="sidenav-collapse-main">
17 17
                 <!-- Nav items -->
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
      */
24 24
     public function getCloseTagWrapper()
25 25
     {
26
-        return PHP_EOL . '</ul>
26
+        return PHP_EOL.'</ul>
27 27
             </div>
28 28
         </div>' . PHP_EOL;
29 29
     }
@@ -34,11 +34,11 @@  discard block
 block discarded – undo
34 34
     public function getMenuWithoutDropdownWrapper($item)
35 35
     {
36 36
         $html = '<li class="nav-item">';
37
-        $html .= '  <a class="nav-link' . $this->getActiveState($item) . '" href="' . $item->getUrl() . '" ' . $item->getAttributes() . '>';
38
-        $html .=      $item->getIcon();
39
-        $html .= '    <span class="nav-link-text">' . $item->title . '</span>';
37
+        $html .= '  <a class="nav-link'.$this->getActiveState($item).'" href="'.$item->getUrl().'" '.$item->getAttributes().'>';
38
+        $html .= $item->getIcon();
39
+        $html .= '    <span class="nav-link-text">'.$item->title.'</span>';
40 40
         $html .= '  </a>';
41
-        $html .= '</li>' . PHP_EOL;
41
+        $html .= '</li>'.PHP_EOL;
42 42
 
43 43
         return $html;
44 44
     }
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      */
91 91
     public function getHeaderWrapper($item)
92 92
     {
93
-        return '<h6 class="navbar-heading p-0 text-muted">' . $item->title . '</h6>';
93
+        return '<h6 class="navbar-heading p-0 text-muted">'.$item->title.'</h6>';
94 94
     }
95 95
 
96 96
     /**
@@ -99,13 +99,13 @@  discard block
 block discarded – undo
99 99
     public function getMenuWithDropDownWrapper($item)
100 100
     {
101 101
         return '<li class="nav-item">
102
-    <a class="nav-link' . $this->getActiveStateOnChild($item) . '" href="#navbar-' . mb_strtolower($item->title) . '" data-toggle="collapse" role="button" aria-expanded="false" aria-controls="navbar-' . mb_strtolower($item->title) . '">
103
-        ' . $item->getIcon() . '
104
-        <span class="nav-link-text">' . $item->title . '</span>
102
+    <a class="nav-link' . $this->getActiveStateOnChild($item).'" href="#navbar-'.mb_strtolower($item->title).'" data-toggle="collapse" role="button" aria-expanded="false" aria-controls="navbar-'.mb_strtolower($item->title).'">
103
+        ' . $item->getIcon().'
104
+        <span class="nav-link-text">' . $item->title.'</span>
105 105
     </a>
106
-    <div class="collapse' . $this->getShowStateOnChild($item) . '" id="navbar-' . mb_strtolower($item->title) . '">
106
+    <div class="collapse' . $this->getShowStateOnChild($item).'" id="navbar-'.mb_strtolower($item->title).'">
107 107
         <ul class="nav nav-sm flex-column">
108
-            ' . $this->getChildMenuItems($item) . '
108
+            ' . $this->getChildMenuItems($item).'
109 109
         </ul>
110 110
     </div>
111 111
 </li>'
@@ -122,13 +122,13 @@  discard block
 block discarded – undo
122 122
     public function getMultiLevelDropdownWrapper($item)
123 123
     {
124 124
         return '<li class="nav-item">
125
-    <a class="nav-link' . $this->getActiveState($item) . '" href="#navbar-' . mb_strtolower($item->title) . '" data-toggle="collapse" role="button" aria-expanded="false" aria-controls="navbar-' . mb_strtolower($item->title) . '">
126
-        ' . $item->getIcon() . '
127
-        <span class="nav-link-text">' . $item->title . '</span>
125
+    <a class="nav-link' . $this->getActiveState($item).'" href="#navbar-'.mb_strtolower($item->title).'" data-toggle="collapse" role="button" aria-expanded="false" aria-controls="navbar-'.mb_strtolower($item->title).'">
126
+        ' . $item->getIcon().'
127
+        <span class="nav-link-text">' . $item->title.'</span>
128 128
     </a>
129
-    <div class="collapse" id="navbar-' . mb_strtolower($item->title) . '">
129
+    <div class="collapse" id="navbar-' . mb_strtolower($item->title).'">
130 130
         <ul class="nav nav-sm flex-column">
131
-            ' . $this->getChildMenuItems($item) . '
131
+            ' . $this->getChildMenuItems($item).'
132 132
         </ul>
133 133
     </div>
134 134
 </li>'
Please login to merge, or discard this patch.
src/Presenters/Bootstrap3/Navbar.php 2 patches
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,6 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
     /**
34 34
      * {@inheritdoc }.
35
+     * @param \Spinzar\Menu\MenuItem $item
35 36
      */
36 37
     public function getActiveState($item, $state = ' class="active"')
37 38
     {
@@ -41,7 +42,7 @@  discard block
 block discarded – undo
41 42
     /**
42 43
      * Get active state on child items.
43 44
      *
44
-     * @param $item
45
+     * @param \Spinzar\Menu\MenuItem $item
45 46
      * @param string $state
46 47
      *
47 48
      * @return null|string
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
      */
12 12
     public function getOpenTagWrapper()
13 13
     {
14
-        return PHP_EOL . '<ul class="nav navbar-nav">' . PHP_EOL;
14
+        return PHP_EOL.'<ul class="nav navbar-nav">'.PHP_EOL;
15 15
     }
16 16
 
17 17
     /**
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
      */
20 20
     public function getCloseTagWrapper()
21 21
     {
22
-        return PHP_EOL . '</ul>' . PHP_EOL;
22
+        return PHP_EOL.'</ul>'.PHP_EOL;
23 23
     }
24 24
 
25 25
     /**
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      */
28 28
     public function getMenuWithoutDropdownWrapper($item)
29 29
     {
30
-        return '<li' . $this->getActiveState($item) . '><a href="' . $item->getUrl() . '" ' . $item->getAttributes() . '>' . $item->getIcon() . ' ' . $item->title . '</a></li>' . PHP_EOL;
30
+        return '<li'.$this->getActiveState($item).'><a href="'.$item->getUrl().'" '.$item->getAttributes().'>'.$item->getIcon().' '.$item->title.'</a></li>'.PHP_EOL;
31 31
     }
32 32
 
33 33
     /**
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      */
65 65
     public function getHeaderWrapper($item)
66 66
     {
67
-        return '<li class="dropdown-header">' . $item->title . '</li>';
67
+        return '<li class="dropdown-header">'.$item->title.'</li>';
68 68
     }
69 69
 
70 70
     /**
@@ -72,13 +72,13 @@  discard block
 block discarded – undo
72 72
      */
73 73
     public function getMenuWithDropDownWrapper($item)
74 74
     {
75
-        return '<li class="dropdown' . $this->getActiveStateOnChild($item, ' active') . '">
75
+        return '<li class="dropdown'.$this->getActiveStateOnChild($item, ' active').'">
76 76
 		          <a href="#" class="dropdown-toggle" data-toggle="dropdown">
77
-					' . $item->getIcon() . ' ' . $item->title . '
77
+					' . $item->getIcon().' '.$item->title.'
78 78
 			      	<b class="caret"></b>
79 79
 			      </a>
80 80
 			      <ul class="dropdown-menu">
81
-			      	' . $this->getChildMenuItems($item) . '
81
+			      	' . $this->getChildMenuItems($item).'
82 82
 			      </ul>
83 83
 		      	</li>'
84 84
         . PHP_EOL;
@@ -93,13 +93,13 @@  discard block
 block discarded – undo
93 93
      */
94 94
     public function getMultiLevelDropdownWrapper($item)
95 95
     {
96
-        return '<li class="dropdown' . $this->getActiveStateOnChild($item, ' active') . '">
96
+        return '<li class="dropdown'.$this->getActiveStateOnChild($item, ' active').'">
97 97
 		          <a href="#" class="dropdown-toggle" data-toggle="dropdown">
98
-					' . $item->getIcon() . ' ' . $item->title . '
98
+					' . $item->getIcon().' '.$item->title.'
99 99
 			      	<b class="caret pull-right caret-right"></b>
100 100
 			      </a>
101 101
 			      <ul class="dropdown-menu">
102
-			      	' . $this->getChildMenuItems($item) . '
102
+			      	' . $this->getChildMenuItems($item).'
103 103
 			      </ul>
104 104
 		      	</li>'
105 105
         . PHP_EOL;
Please login to merge, or discard this patch.
src/Presenters/Bootstrap3/Sidebar.php 2 patches
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,6 +42,7 @@  discard block
 block discarded – undo
42 42
 
43 43
     /**
44 44
      * {@inheritdoc }.
45
+     * @param \Spinzar\Menu\MenuItem $item
45 46
      */
46 47
     public function getActiveState($item, $state = ' class="active"')
47 48
     {
@@ -51,7 +52,7 @@  discard block
 block discarded – undo
51 52
     /**
52 53
      * Get active state on child items.
53 54
      *
54
-     * @param $item
55
+     * @param \Spinzar\Menu\MenuItem $item
55 56
      * @param string $state
56 57
      *
57 58
      * @return null|string
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -35,9 +35,9 @@  discard block
 block discarded – undo
35 35
      */
36 36
     public function getMenuWithoutDropdownWrapper($item)
37 37
     {
38
-        return '<li' . $this->getActiveState($item) . '>
39
-			<a href="' . $item->getUrl() . '" ' . $item->getAttributes() . '>'
40
-        . $item->getIcon() . ' ' . $item->title . '</a></li>' . PHP_EOL;
38
+        return '<li'.$this->getActiveState($item).'>
39
+			<a href="' . $item->getUrl().'" '.$item->getAttributes().'>'
40
+        . $item->getIcon().' '.$item->title.'</a></li>'.PHP_EOL;
41 41
     }
42 42
 
43 43
     /**
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      */
75 75
     public function getHeaderWrapper($item)
76 76
     {
77
-        return '<li class="dropdown-header">' . $item->title . '</li>';
77
+        return '<li class="dropdown-header">'.$item->title.'</li>';
78 78
     }
79 79
 
80 80
     /**
@@ -85,14 +85,14 @@  discard block
 block discarded – undo
85 85
         $id = str_random();
86 86
 
87 87
         return '
88
-		<li class="' . $this->getActiveStateOnChild($item) . ' panel panel-default" id="dropdown">
89
-			<a data-toggle="collapse" href="#' . $id . '">
90
-				' . $item->getIcon() . ' ' . $item->title . ' <span class="caret"></span>
88
+		<li class="' . $this->getActiveStateOnChild($item).' panel panel-default" id="dropdown">
89
+			<a data-toggle="collapse" href="#' . $id.'">
90
+				' . $item->getIcon().' '.$item->title.' <span class="caret"></span>
91 91
 			</a>
92
-			<div id="' . $id . '" class="panel-collapse collapse ' . $this->getActiveStateOnChild($item, 'in') . '">
92
+			<div id="' . $id.'" class="panel-collapse collapse '.$this->getActiveStateOnChild($item, 'in').'">
93 93
 				<div class="panel-body">
94 94
 					<ul class="nav navbar-nav">
95
-						' . $this->getChildMenuItems($item) . '
95
+						' . $this->getChildMenuItems($item).'
96 96
 					</ul>
97 97
 				</div>
98 98
 			</div>
Please login to merge, or discard this patch.
src/MenuItem.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -349,13 +349,13 @@  discard block
 block discarded – undo
349 349
     public function getIcon($default = null)
350 350
     {
351 351
         if ($this->icon !== null && $this->icon !== '') {
352
-            return '<i class="' . $this->icon . '"></i>';
352
+            return '<i class="'.$this->icon.'"></i>';
353 353
         }
354 354
         if ($default === null) {
355 355
             return $default;
356 356
         }
357 357
 
358
-        return '<i class="' . $default . '"></i>';
358
+        return '<i class="'.$default.'"></i>';
359 359
     }
360 360
 
361 361
     /**
@@ -561,7 +561,7 @@  discard block
 block discarded – undo
561 561
      */
562 562
     protected function getActiveStateFromRoute()
563 563
     {
564
-        return Request::is(str_replace(url('/') . '/', '', $this->getUrl()));
564
+        return Request::is(str_replace(url('/').'/', '', $this->getUrl()));
565 565
     }
566 566
 
567 567
     /**
Please login to merge, or discard this patch.
src/Menu.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
      */
102 102
     public function modify($name, Closure $callback)
103 103
     {
104
-        $menu = collect($this->menu)->filter(function ($menu) use ($name) {
104
+        $menu = collect($this->menu)->filter(function($menu) use ($name) {
105 105
             return $menu->getName() == $name;
106 106
         })->first();
107 107
 
Please login to merge, or discard this patch.
src/Provider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,8 +19,8 @@  discard block
 block discarded – undo
19 19
      */
20 20
     public function boot()
21 21
     {
22
-        $configPath = __DIR__ . '/Config/menu.php';
23
-        $viewsPath = __DIR__ . '/Resources/views';
22
+        $configPath = __DIR__.'/Config/menu.php';
23
+        $viewsPath = __DIR__.'/Resources/views';
24 24
         
25 25
         $this->mergeConfigFrom($configPath, 'menu');
26 26
         $this->loadViewsFrom($viewsPath, 'menu');
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     {
46 46
         $this->registerHtmlPackage();
47 47
 
48
-        $this->app->singleton('menu', function ($app) {
48
+        $this->app->singleton('menu', function($app) {
49 49
             return new Menu($app['view'], $app['config']);
50 50
         });
51 51
     }
Please login to merge, or discard this patch.
src/Presenters/Bootstrap3/NavPills.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,6 +9,6 @@
 block discarded – undo
9 9
      */
10 10
     public function getOpenTagWrapper()
11 11
     {
12
-        return PHP_EOL . '<ul class="nav nav-pills">' . PHP_EOL;
12
+        return PHP_EOL.'<ul class="nav nav-pills">'.PHP_EOL;
13 13
     }
14 14
 }
Please login to merge, or discard this patch.