Completed
Push — main ( ec48c6...ea559f )
by nassim
01:32
created
src/Presenters/Bootstrap3/Sidebar.php 2 patches
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.
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.
src/Presenters/Bootstrap3/Navbar.php 2 patches
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.
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.
src/Presenters/Admin/MetronicHorizontal.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
      */
19 19
     public function getOpenTagWrapper()
20 20
     {
21
-        return PHP_EOL . '<ul class="m-menu__nav  m-menu__nav--submenu-arrow ">' . PHP_EOL;
21
+        return PHP_EOL.'<ul class="m-menu__nav  m-menu__nav--submenu-arrow ">'.PHP_EOL;
22 22
     }
23 23
 
24 24
     /**
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      */
27 27
     public function getCloseTagWrapper()
28 28
     {
29
-        return PHP_EOL . '</ul>' . PHP_EOL;
29
+        return PHP_EOL.'</ul>'.PHP_EOL;
30 30
     }
31 31
 
32 32
     /**
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      */
35 35
     public function getMenuWithoutDropdownWrapper($item)
36 36
     {
37
-        return '<li ' . $this->getActiveState($item) . '>' . $item->getIcon() . '<a href="' . $item->getUrl() . '" class="m-menu__link"><span class="m-menu__item-here"></span><span class="m-menu__link-text">' . $item->title . '</span></a></li>';
37
+        return '<li '.$this->getActiveState($item).'>'.$item->getIcon().'<a href="'.$item->getUrl().'" class="m-menu__link"><span class="m-menu__item-here"></span><span class="m-menu__link-text">'.$item->title.'</span></a></li>';
38 38
     }
39 39
 
40 40
     /**
@@ -68,16 +68,16 @@  discard block
 block discarded – undo
68 68
                             <div class="m-menu__submenu m-menu__submenu--classic m-menu__submenu--left m-menu__submenu--pull">
69 69
                                 <span class="m-menu__arrow m-menu__arrow--adjust"></span>
70 70
                                 <ul class="m-menu__subnav">
71
-                                    ' . $this->getChildMenuItems($item) . '
71
+                                    ' . $this->getChildMenuItems($item).'
72 72
                                 </ul>
73 73
                             </div>
74 74
                         </li>' . PHP_EOL;
75 75
         } else {
76 76
             return '<li class="m-menu__item  m-menu__item--submenu m-menu__item--rel"  data-menu-submenu-toggle="click" aria-haspopup="true">
77 77
                             <a  href="#" class="m-menu__link m-menu__toggle">
78
-                                ' . $item->getIcon() . '
78
+                                ' . $item->getIcon().'
79 79
                                 <span class="m-menu__link-text">
80
-                                    ' . $item->title . '
80
+                                    ' . $item->title.'
81 81
                                 </span>
82 82
                                 <i class="m-menu__hor-arrow la la-angle-down"></i>
83 83
                                 <i class="m-menu__ver-arrow la la-angle-right"></i>
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
                             <div class="m-menu__submenu m-menu__submenu--classic m-menu__submenu--left">
86 86
                                 <span class="m-menu__arrow m-menu__arrow--adjust"></span>
87 87
                                 <ul class="m-menu__subnav">
88
-                                    ' . $this->getChildMenuItems($item) . '
88
+                                    ' . $this->getChildMenuItems($item).'
89 89
                                 </ul>
90 90
                             </div>
91 91
                         </li>' . PHP_EOL;
@@ -96,9 +96,9 @@  discard block
 block discarded – undo
96 96
     {
97 97
         return '<li class="m-menu__item  m-menu__item--submenu"  data-menu-submenu-toggle="hover" data-redirect="true" aria-haspopup="true">
98 98
                             <a  href="#" class="m-menu__link m-menu__toggle">
99
-                                ' . $item->getIcon() . '
99
+                                ' . $item->getIcon().'
100 100
                                 <span class="m-menu__link-text">
101
-                                    ' . $item->title . '
101
+                                    ' . $item->title.'
102 102
                                 </span>
103 103
                                 <i class="m-menu__hor-arrow la la-angle-right"></i>
104 104
                                 <i class="m-menu__ver-arrow la la-angle-right"></i>
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
                             <div class="m-menu__submenu m-menu__submenu--classic m-menu__submenu--right">
107 107
                                 <span class="m-menu__arrow m-menu__arrow--adjust"></span>
108 108
                                 <ul class="m-menu__subnav">
109
-                                    ' . $this->getChildMenuItems($item) . '
109
+                                    ' . $this->getChildMenuItems($item).'
110 110
                                 </ul>
111 111
                             </div>
112 112
                         </li>' . PHP_EOL;
Please login to merge, or discard this patch.
src/Presenters/Foundation/Zurb.php 1 patch
Spacing   +7 added lines, -7 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 . '<nav class="custom-main">
14
+        return  PHP_EOL.'<nav class="custom-main">
15 15
         <ul class="dropdown menu" data-dropdown-menu>' . PHP_EOL;
16 16
     }
17 17
 
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
      */
21 21
     public function getCloseTagWrapper()
22 22
     {
23
-        return  PHP_EOL . '</ul></nav>' . PHP_EOL;
23
+        return  PHP_EOL.'</ul></nav>'.PHP_EOL;
24 24
     }
25 25
 
26 26
     /**
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      */
29 29
     public function getMenuWithoutDropdownWrapper($item)
30 30
     {
31
-        return '<li' . $this->getActiveState($item) . '><a href="' . $item->getUrl() . '">' . $item->title . '</a></li>';
31
+        return '<li'.$this->getActiveState($item).'><a href="'.$item->getUrl().'">'.$item->title.'</a></li>';
32 32
     }
33 33
 
34 34
     /**
@@ -53,9 +53,9 @@  discard block
 block discarded – undo
53 53
     public function getMenuWithDropDownWrapper($item)
54 54
     {
55 55
         return '<li class="dropdown dropdown-primary">
56
-                    <a class="dropdown-toggle" href="#">' . $item->title . '</a>
56
+                    <a class="dropdown-toggle" href="#">' . $item->title.'</a>
57 57
                     <ul class="menu">
58
-                      ' . $this->getChildMenuItems($item) . '
58
+                      ' . $this->getChildMenuItems($item).'
59 59
                     </ul>
60 60
                 </li>' . PHP_EOL;
61 61
     }
@@ -67,9 +67,9 @@  discard block
 block discarded – undo
67 67
     public function getMultiLevelDropdownWrapper($item)
68 68
     {
69 69
         return '<li>
70
-                  <a href="#">' . $item->title . '</a>
70
+                  <a href="#">' . $item->title.'</a>
71 71
                   <ul class="menu">
72
-                    ' . $this->getChildMenuItems($item) . '
72
+                    ' . $this->getChildMenuItems($item).'
73 73
                   </ul>
74 74
                 </li>' . PHP_EOL;
75 75
     }
Please login to merge, or discard this patch.