Completed
Push — master ( c79795...cbbc28 )
by
unknown
01:58
created
src/SideNav.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      * @since  19 Sep 2016
45 45
      * @param  $class
46 46
      */
47
-    public static function checkStatusObject($class,$method)
47
+    public static function checkStatusObject($class, $method)
48 48
     {
49 49
         self::$checkStatusObject = [
50 50
             'object' => $class,
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
      * @param  $callback
110 110
      * @param  $checkCallback
111 111
      */
112
-    public static function registerWithCheck($route , $callback , $checkCallback = null)
112
+    public static function registerWithCheck($route, $callback, $checkCallback = null)
113 113
     {
114 114
         // check status of route
115 115
         if (self::checkStatus($route, $checkCallback)) {
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
      * @param  $callback
145 145
      * @return array
146 146
      */
147
-    private static function add($route,$callback)
147
+    private static function add($route, $callback)
148 148
     {
149 149
         // instance of menu class
150 150
         $menu = new Menu;
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
      */
166 166
     public static function routes($index = null)
167 167
     {
168
-        if($index !== null) {
168
+        if ($index !== null) {
169 169
             return self::$routes[$index];
170 170
         }
171 171
 
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
     public static function render($type = null)
186 186
     {
187 187
         // check $type was used
188
-        if(isset($type)) {
188
+        if (isset($type)) {
189 189
             // return group menu
190 190
             return self::$menu[$type];
191 191
         }
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
      */
204 204
     public static function checkGroupId($type)
205 205
     {
206
-        if($type !== null && isset(self::$group)) {
206
+        if ($type !== null && isset(self::$group)) {
207 207
             return true;
208 208
         }
209 209
 
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
      * @param  $callback
220 220
      * @return bool
221 221
      */
222
-    public static function checkStatus($route,$callback = false)
222
+    public static function checkStatus($route, $callback = false)
223 223
     {
224 224
         if ($callback instanceof \Closure) {
225 225
             if ($callback()) {
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
         // check status method name
234 234
         $method = self::$checkStatusObject['method'];
235 235
 
236
-        if(class_exists($obj)) {
236
+        if (class_exists($obj)) {
237 237
             // instance of class
238 238
             $class = new $obj;
239 239
 
Please login to merge, or discard this patch.