Completed
Pull Request — master (#17)
by Nauris
10:18
created
src/Presenters/Foundation/ZurbMenuPresenter.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -37,6 +37,7 @@
 block discarded – undo
37 37
 
38 38
     /**
39 39
      * {@inheritdoc }
40
+     * @param \Nwidart\Menus\MenuItem $item
40 41
      */
41 42
     public function getActiveState($item)
42 43
     {
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -28,11 +28,11 @@  discard block
 block discarded – undo
28 28
      */
29 29
     public function getMenuWithoutDropdownWrapper($item)
30 30
     {
31
-        if($item->auth && auth()->guest()) {
31
+        if ($item->auth && auth()->guest()) {
32 32
             return null;
33 33
         }
34 34
 
35
-        return '<li'.$this->getActiveState($item).'><a href="'. $item->getUrl() .'">'.$item->title.'</a></li>';
35
+        return '<li' . $this->getActiveState($item) . '><a href="' . $item->getUrl() . '">' . $item->title . '</a></li>';
36 36
     }
37 37
 
38 38
     /**
@@ -56,14 +56,14 @@  discard block
 block discarded – undo
56 56
      */
57 57
     public function getMenuWithDropDownWrapper($item)
58 58
     {
59
-        if($item->auth && auth()->guest()) {
59
+        if ($item->auth && auth()->guest()) {
60 60
             return null;
61 61
         }
62 62
 
63 63
         return '<li class="dropdown dropdown-primary">
64
-                    <a class="dropdown-toggle" href="#">'.$item->title.'</a>
64
+                    <a class="dropdown-toggle" href="#">'.$item->title . '</a>
65 65
                     <ul class="menu">
66
-                      '.$this->getChildMenuItems($item).'
66
+                      '.$this->getChildMenuItems($item) . '
67 67
                     </ul>
68 68
                 </li>' . PHP_EOL;
69 69
     }
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      */
75 75
     public function getMultiLevelDropdownWrapper($item)
76 76
     {
77
-        if($item->auth && auth()->guest()) {
77
+        if ($item->auth && auth()->guest()) {
78 78
             return null;
79 79
         }
80 80
         
Please login to merge, or discard this patch.
src/Presenters/Admin/AdminltePresenter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      */
28 28
     public function getMenuWithoutDropdownWrapper($item)
29 29
     {
30
-        if($item->auth && auth()->guest()) {
30
+        if ($item->auth && auth()->guest()) {
31 31
             return null;
32 32
         }
33 33
 
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
      */
77 77
     public function getMenuWithDropDownWrapper($item)
78 78
     {
79
-        if($item->auth && auth()->guest()) {
79
+        if ($item->auth && auth()->guest()) {
80 80
             return null;
81 81
         }
82 82
 
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      */
104 104
     public function getMultiLevelDropdownWrapper($item)
105 105
     {
106
-        if($item->auth && auth()->guest()) {
106
+        if ($item->auth && auth()->guest()) {
107 107
             return null;
108 108
         }
109 109
 
Please login to merge, or discard this patch.
src/Presenters/Bootstrap/SidebarMenuPresenter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      */
36 36
     public function getMenuWithoutDropdownWrapper($item)
37 37
     {
38
-        if($item->auth && auth()->guest()) {
38
+        if ($item->auth && auth()->guest()) {
39 39
             return null;
40 40
         }
41 41
 
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      */
87 87
     public function getMenuWithDropDownWrapper($item)
88 88
     {
89
-        if($item->auth && auth()->guest()) {
89
+        if ($item->auth && auth()->guest()) {
90 90
             return null;
91 91
         }
92 92
 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      */
118 118
     public function getMultiLevelDropdownWrapper($item)
119 119
     {
120
-        if($item->auth && auth()->guest()) {
120
+        if ($item->auth && auth()->guest()) {
121 121
             return null;
122 122
         }
123 123
 
Please login to merge, or discard this patch.
src/Presenters/Bootstrap/NavbarRightPresenter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
      */
18 18
     public function getMenuWithDropDownWrapper($item)
19 19
     {
20
-        if($item->auth && auth()->guest()) {
20
+        if ($item->auth && auth()->guest()) {
21 21
             return null;
22 22
         }
23 23
 
Please login to merge, or discard this patch.
src/Presenters/Bootstrap/NavbarPresenter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      */
28 28
     public function getMenuWithoutDropdownWrapper($item)
29 29
     {
30
-        if($item->auth && auth()->guest()) {
30
+        if ($item->auth && auth()->guest()) {
31 31
             return null;
32 32
         }
33 33
 
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
      */
77 77
     public function getMenuWithDropDownWrapper($item)
78 78
     {
79
-        if($item->auth && auth()->guest()) {
79
+        if ($item->auth && auth()->guest()) {
80 80
             return null;
81 81
         }
82 82
 
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      */
102 102
     public function getMultiLevelDropdownWrapper($item)
103 103
     {
104
-        if($item->auth && auth()->guest()) {
104
+        if ($item->auth && auth()->guest()) {
105 105
             return null;
106 106
         }
107 107
 
Please login to merge, or discard this patch.
src/Presenters/Bootstrap/NavMenuPresenter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
      */
18 18
     public function getMenuWithDropDownWrapper($item)
19 19
     {
20
-        if($item->auth && auth()->guest()) {
20
+        if ($item->auth && auth()->guest()) {
21 21
             return null;
22 22
         }
23 23
 
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      */
43 43
     public function getMultiLevelDropdownWrapper($item)
44 44
     {
45
-        if($item->auth && auth()->guest()) {
45
+        if ($item->auth && auth()->guest()) {
46 46
             return null;
47 47
         }
48 48
 
Please login to merge, or discard this patch.