Completed
Push — master ( 2afe4f...064b0a )
by Kyle
29s queued 15s
created
src/Contracts/MenuItemContract.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 
136 136
     abstract public function getBadge(): string;
137 137
 
138
-    abstract public function getIcon(null|string $default): ?string;
138
+    abstract public function getIcon(null | string $default): ?string;
139 139
 
140 140
     abstract public function getProperties(): array;
141 141
 
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
     public function __get(string $key): ?string
188 188
     {
189 189
         $return = null;
190
-        if(property_exists($this, $key)) {
190
+        if (property_exists($this, $key)) {
191 191
             $return = $this->$key ?? null;
192 192
         }
193 193
 
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
 
197 197
     public function __call($name, $arguments)
198 198
     {
199
-        if(str($name)->is('is*')) {
199
+        if (str($name)->is('is*')) {
200 200
             $slice = str($name)->after('is')->lower();
201 201
 
202 202
             return $this->is($slice);
Please login to merge, or discard this patch.
src/Presenters/Metronic/MetronicHorizontalMenuPresenter.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(): ?string
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(): ?string
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(MenuItemContract $item): ?string
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/ZurbMenuPresenter.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
      */
13 13
     public function getOpenTagWrapper(): ?string
14 14
     {
15
-        return  PHP_EOL . '<nav class="custom-main">
15
+        return  PHP_EOL.'<nav class="custom-main">
16 16
         <ul class="dropdown menu" data-dropdown-menu>' . PHP_EOL;
17 17
     }
18 18
 
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
      */
22 22
     public function getCloseTagWrapper(): ?string
23 23
     {
24
-        return  PHP_EOL . '</ul></nav>' . PHP_EOL;
24
+        return  PHP_EOL.'</ul></nav>'.PHP_EOL;
25 25
     }
26 26
 
27 27
     /**
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      */
30 30
     public function getMenuWithoutDropdownWrapper(MenuItemContract $item): ?string
31 31
     {
32
-        return '<li' . $this->getActiveState($item) . '><a href="' . $item->getUrl() . '">' . $item->title . '</a></li>';
32
+        return '<li'.$this->getActiveState($item).'><a href="'.$item->getUrl().'">'.$item->title.'</a></li>';
33 33
     }
34 34
 
35 35
     /**
@@ -54,9 +54,9 @@  discard block
 block discarded – undo
54 54
     public function getMenuWithDropDownWrapper(MenuItemContract $item): ?string
55 55
     {
56 56
         return '<li class="dropdown dropdown-primary">
57
-                    <a class="dropdown-toggle" href="#">' . $item->title . '</a>
57
+                    <a class="dropdown-toggle" href="#">' . $item->title.'</a>
58 58
                     <ul class="menu">
59
-                      ' . $this->getChildMenuItems($item) . '
59
+                      ' . $this->getChildMenuItems($item).'
60 60
                     </ul>
61 61
                 </li>' . PHP_EOL;
62 62
     }
@@ -67,9 +67,9 @@  discard block
 block discarded – undo
67 67
     public function getMultiLevelDropdownWrapper($item): string
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.
src/Presenters/Bootstrap/NavPillsPresenter.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(): ?string
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.
src/Presenters/Bootstrap/NavTabPresenter.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(): ?string
11 11
     {
12
-        return PHP_EOL . '<ul class="nav nav-tabs">' . PHP_EOL;
12
+        return PHP_EOL.'<ul class="nav nav-tabs">'.PHP_EOL;
13 13
     }
14 14
 }
Please login to merge, or discard this patch.
src/Presenters/Bootstrap/NavbarRightPresenter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
      */
12 12
     public function getOpenTagWrapper(): ?string
13 13
     {
14
-        return PHP_EOL . '<ul class="nav navbar-nav navbar-right">' . PHP_EOL;
14
+        return PHP_EOL.'<ul class="nav navbar-nav navbar-right">'.PHP_EOL;
15 15
     }
16 16
 
17 17
     /**
@@ -21,11 +21,11 @@  discard block
 block discarded – undo
21 21
     {
22 22
         return '<li class="dropdown pull-right">
23 23
 			      <a href="#" class="dropdown-toggle" data-toggle="dropdown">
24
-					' . $item->getIcon() . ' ' . $item->title . '
24
+					' . $item->getIcon().' '.$item->title.'
25 25
 			      	<b class="caret"></b>
26 26
 			      </a>
27 27
 			      <ul class="dropdown-menu">
28
-			      	' . $this->getChildMenuItems($item) . '
28
+			      	' . $this->getChildMenuItems($item).'
29 29
 			      </ul>
30 30
 		      	</li>'
31 31
         . PHP_EOL;
Please login to merge, or discard this patch.
src/Presenters/Bootstrap/SidebarMenuPresenter.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -37,9 +37,9 @@  discard block
 block discarded – undo
37 37
      */
38 38
     public function getMenuWithoutDropdownWrapper(MenuItemContract $item): ?string
39 39
     {
40
-        return '<li' . $this->getActiveState($item) . '>
41
-			<a href="' . $item->getUrl() . '" ' . $item->getAttributes() . '>'
42
-        . $item->getIcon() . ' ' . $item->title . '</a></li>' . PHP_EOL;
40
+        return '<li'.$this->getActiveState($item).'>
41
+			<a href="' . $item->getUrl().'" '.$item->getAttributes().'>'
42
+        . $item->getIcon().' '.$item->title.'</a></li>'.PHP_EOL;
43 43
     }
44 44
 
45 45
     /**
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
      */
77 77
     public function getHeaderWrapper(MenuItemContract $item): ?string
78 78
     {
79
-        return '<li class="dropdown-header">' . $item->title . '</li>';
79
+        return '<li class="dropdown-header">'.$item->title.'</li>';
80 80
     }
81 81
 
82 82
     /**
@@ -87,14 +87,14 @@  discard block
 block discarded – undo
87 87
         $id = Str::random();
88 88
 
89 89
         return '
90
-		<li class="' . $this->getActiveStateOnChild($item) . ' panel panel-default" id="dropdown">
91
-			<a data-toggle="collapse" href="#' . $id . '">
92
-				' . $item->getIcon() . ' ' . $item->title . ' <span class="caret"></span>
90
+		<li class="' . $this->getActiveStateOnChild($item).' panel panel-default" id="dropdown">
91
+			<a data-toggle="collapse" href="#' . $id.'">
92
+				' . $item->getIcon().' '.$item->title.' <span class="caret"></span>
93 93
 			</a>
94
-			<div id="' . $id . '" class="panel-collapse collapse ' . $this->getActiveStateOnChild($item, 'in') . '">
94
+			<div id="' . $id.'" class="panel-collapse collapse '.$this->getActiveStateOnChild($item, 'in').'">
95 95
 				<div class="panel-body">
96 96
 					<ul class="nav navbar-nav">
97
-						' . $this->getChildMenuItems($item) . '
97
+						' . $this->getChildMenuItems($item).'
98 98
 					</ul>
99 99
 				</div>
100 100
 			</div>
Please login to merge, or discard this patch.
src/Presenters/Bootstrap/NavbarPresenter.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
      */
13 13
     public function getOpenTagWrapper(): ?string
14 14
     {
15
-        return PHP_EOL . '<ul class="nav navbar-nav">' . PHP_EOL;
15
+        return PHP_EOL.'<ul class="nav navbar-nav">'.PHP_EOL;
16 16
     }
17 17
 
18 18
     /**
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
      */
21 21
     public function getCloseTagWrapper(): ?string
22 22
     {
23
-        return PHP_EOL . '</ul>' . PHP_EOL;
23
+        return PHP_EOL.'</ul>'.PHP_EOL;
24 24
     }
25 25
 
26 26
     /**
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      */
29 29
     public function getMenuWithoutDropdownWrapper(MenuItemContract $item): ?string
30 30
     {
31
-        return '<li' . $this->getActiveState($item) . '><a href="' . $item->getUrl() . '" ' . $item->getAttributes() . '>' . $item->getIcon() . ' ' . $item->title . '</a></li>' . PHP_EOL;
31
+        return '<li'.$this->getActiveState($item).'><a href="'.$item->getUrl().'" '.$item->getAttributes().'>'.$item->getIcon().' '.$item->title.'</a></li>'.PHP_EOL;
32 32
     }
33 33
 
34 34
     /**
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      */
66 66
     public function getHeaderWrapper(MenuItemContract $item): ?string
67 67
     {
68
-        return '<li class="dropdown-header">' . $item->title . '</li>';
68
+        return '<li class="dropdown-header">'.$item->title.'</li>';
69 69
     }
70 70
 
71 71
     /**
@@ -73,13 +73,13 @@  discard block
 block discarded – undo
73 73
      */
74 74
     public function getMenuWithDropDownWrapper(MenuItemContract $item): ?string
75 75
     {
76
-        return '<li class="dropdown' . $this->getActiveStateOnChild($item, ' active') . '">
76
+        return '<li class="dropdown'.$this->getActiveStateOnChild($item, ' active').'">
77 77
 		          <a href="#" class="dropdown-toggle" data-toggle="dropdown">
78
-					' . $item->getIcon() . ' ' . $item->title . '
78
+					' . $item->getIcon().' '.$item->title.'
79 79
 			      	<b class="caret"></b>
80 80
 			      </a>
81 81
 			      <ul class="dropdown-menu">
82
-			      	' . $this->getChildMenuItems($item) . '
82
+			      	' . $this->getChildMenuItems($item).'
83 83
 			      </ul>
84 84
 		      	</li>'
85 85
         . PHP_EOL;
@@ -94,13 +94,13 @@  discard block
 block discarded – undo
94 94
      */
95 95
     public function getMultiLevelDropdownWrapper(MenuItemContract $item): string
96 96
     {
97
-        return '<li class="dropdown' . $this->getActiveStateOnChild($item, ' active') . '">
97
+        return '<li class="dropdown'.$this->getActiveStateOnChild($item, ' active').'">
98 98
 		          <a href="#" class="dropdown-toggle" data-toggle="dropdown">
99
-					' . $item->getIcon() . ' ' . $item->title . '
99
+					' . $item->getIcon().' '.$item->title.'
100 100
 			      	<b class="caret pull-right caret-right"></b>
101 101
 			      </a>
102 102
 			      <ul class="dropdown-menu">
103
-			      	' . $this->getChildMenuItems($item) . '
103
+			      	' . $this->getChildMenuItems($item).'
104 104
 			      </ul>
105 105
 		      	</li>'
106 106
         . PHP_EOL;
Please login to merge, or discard this patch.
src/Presenters/Admin/AdminltePresenter.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
      */
13 13
     public function getOpenTagWrapper(): ?string
14 14
     {
15
-        return PHP_EOL . '<ul class="sidebar-menu tree" data-widget="tree">' . PHP_EOL;
15
+        return PHP_EOL.'<ul class="sidebar-menu tree" data-widget="tree">'.PHP_EOL;
16 16
     }
17 17
 
18 18
     /**
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
      */
21 21
     public function getCloseTagWrapper(): ?string
22 22
     {
23
-        return PHP_EOL . '</ul>' . PHP_EOL;
23
+        return PHP_EOL.'</ul>'.PHP_EOL;
24 24
     }
25 25
 
26 26
     /**
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      */
29 29
     public function getMenuWithoutDropdownWrapper(MenuItemContract $item): ?string
30 30
     {
31
-        return '<li' . $this->getActiveState($item) . '><a href="' . $item->getUrl() . '" ' . $item->getAttributes() . '>' . $item->getIcon() . ' <span>' . $item->title . '</span></a></li>' . PHP_EOL;
31
+        return '<li'.$this->getActiveState($item).'><a href="'.$item->getUrl().'" '.$item->getAttributes().'>'.$item->getIcon().' <span>'.$item->title.'</span></a></li>'.PHP_EOL;
32 32
     }
33 33
 
34 34
     /**
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      */
66 66
     public function getHeaderWrapper(MenuItemContract $item): ?string
67 67
     {
68
-        return '<li class="header">' . $item->title . '</li>';
68
+        return '<li class="header">'.$item->title.'</li>';
69 69
     }
70 70
 
71 71
     /**
@@ -73,15 +73,15 @@  discard block
 block discarded – undo
73 73
      */
74 74
     public function getMenuWithDropDownWrapper(MenuItemContract $item): ?string
75 75
     {
76
-        return '<li class="treeview' . $this->getActiveStateOnChild($item, ' active') . '">
76
+        return '<li class="treeview'.$this->getActiveStateOnChild($item, ' active').'">
77 77
 		          <a href="#">
78
-					' . $item->getIcon() . ' <span>' . $item->title . '</span>
78
+					' . $item->getIcon().' <span>'.$item->title.'</span>
79 79
                     <span class="pull-right-container">
80 80
                       <i class="fa fa-angle-left pull-right"></i>
81 81
                     </span>
82 82
 			      </a>
83 83
 			      <ul class="treeview-menu">
84
-			      	' . $this->getChildMenuItems($item) . '
84
+			      	' . $this->getChildMenuItems($item).'
85 85
 			      </ul>
86 86
 		      	</li>'
87 87
         . PHP_EOL;
@@ -96,15 +96,15 @@  discard block
 block discarded – undo
96 96
      */
97 97
     public function getMultiLevelDropdownWrapper(MenuItemContract $item): string
98 98
     {
99
-        return '<li class="treeview' . $this->getActiveStateOnChild($item, ' active') . '">
99
+        return '<li class="treeview'.$this->getActiveStateOnChild($item, ' active').'">
100 100
 		          <a href="#">
101
-					' . $item->getIcon() . ' <span>' . $item->title . '</span>
101
+					' . $item->getIcon().' <span>'.$item->title.'</span>
102 102
 			      	<span class="pull-right-container">
103 103
                       <i class="fa fa-angle-left pull-right"></i>
104 104
                     </span>
105 105
 			      </a>
106 106
 			      <ul class="treeview-menu">
107
-			      	' . $this->getChildMenuItems($item) . '
107
+			      	' . $this->getChildMenuItems($item).'
108 108
 			      </ul>
109 109
 		      	</li>'
110 110
         . PHP_EOL;
Please login to merge, or discard this patch.