Passed
Branch master (388b38)
by Henri
06:53
created
src/Router.php 1 patch
Braces   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 	                foreach($route['filters'] as $filter){
158 158
 	                    $this->filter->filtering($filter);
159 159
 	                }
160
-	            }else{
160
+	            } else{
161 161
 	                $this->filter->filtering($route['filters']);
162 162
 	            }
163 163
 	        }
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
                         continue;
174 174
                     }
175 175
                 }
176
-	        }else{
176
+	        } else{
177 177
 				if($route['protocol'] !== $currentProtocol){
178 178
                     continue;
179 179
                 }
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
 	                foreach($route['filters'] as $filter){
218 218
 	                    $this->filter->filtering($filter);
219 219
 	                }
220
-	            }else{
220
+	            } else{
221 221
 	                $this->filter->filtering($route['filters']);
222 222
 	            }
223 223
 	        }
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
                 }
242 242
             }
243 243
             
244
-        }else{
244
+        } else{
245 245
             $currentRoute = self::getInstance()->addFilter(end(self::getInstance()->routers),$filters);
246 246
             self::getInstance()->routers[count(self::getInstance()->routers)-1] = $currentRoute;
247 247
         }
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
             foreach ($route['filters'] as $key => $value) {
263 263
                 $filters[] = $value;
264 264
             }
265
-        }else{
265
+        } else{
266 266
             $filters[] = $route['filters'];
267 267
         }
268 268
 
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
 
309 309
         if($isform){
310 310
             $this->ControllerForm($controller, $method, $data['POST']);
311
-        }else {
311
+        } else {
312 312
             $controller->$method($data);
313 313
         }
314 314
     }    
Please login to merge, or discard this patch.
examples/index.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
     
12 12
     Router::create()->dispatch();
13 13
 
14
-}catch(Exception $er){
14
+} catch(Exception $er){
15 15
 
16 16
     die($er->getCode().'  -  '.$er->getMessage());
17 17
 
Please login to merge, or discard this patch.