Passed
Push — master ( 4e125c...d4977c )
by Henri
01:26
created
examples/MiddlewareExample.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
 
78 78
     runMiddlewares($serverRequest);
79 79
 
80
-}catch(Exception $er){
80
+} catch(Exception $er){
81 81
 
82 82
     die("Code Error: {$er->getCode()}<br>Line: {$er->getLine()}<br>File: {$er->getFile()}<br>Message: {$er->getMessage()}.");
83 83
 
Please login to merge, or discard this patch.
examples/DefaultUseExample.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */ 
29 29
     $action = Router::currentAction();
30 30
 
31
-}catch(Exception $er){
31
+} catch(Exception $er){
32 32
 
33 33
     die("Code Error: {$er->getCode()}<br>Line: {$er->getLine()}<br>File: {$er->getFile()}<br>Message: {$er->getMessage()}.");
34 34
 
Please login to merge, or discard this patch.
src/Router.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
                 self::getInstance()->checkMethod($route, $requestMethod);
71 71
                 self::getInstance()->checkData($route, (new Uri($_SERVER['REQUEST_URI']))->getPath());
72 72
                 return self::getInstance();
73
-            }catch(\Exception $er){
73
+            } catch(\Exception $er){
74 74
                 continue;
75 75
             }
76 76
         }
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
         try{
98 98
             $action = unserialize(self::getInstance()->current()['action']);
99 99
             self::getInstance()->executeRouteAction( (is_string($action)) ? $action : $action->getClosure()  );
100
-        }catch(\Exception $er){
100
+        } catch(\Exception $er){
101 101
             self::getInstance()->error = $er;
102 102
         }
103 103
         
Please login to merge, or discard this patch.