Passed
Pull Request — master (#31)
by
unknown
02:53
created
src/Routes/Route.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
             'module' => $this->module
90 90
         ];
91 91
 
92
-        if(is_callable($params[0])) {
92
+        if (is_callable($params[0])) {
93 93
 
94 94
             $this->currentRoute['callback'] = $params[0];
95 95
         } else {
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
      */
115 115
     public function get($route, ...$params)
116 116
     {
117
-        return $this->add($route,'GET', ...$params);
117
+        return $this->add($route, 'GET', ...$params);
118 118
     }
119 119
 
120 120
     /**
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
      */
126 126
     public function post($route, ...$params)
127 127
     {
128
-        return $this->add($route,'POST', ...$params);
128
+        return $this->add($route, 'POST', ...$params);
129 129
     }
130 130
 
131 131
     /**
Please login to merge, or discard this patch.
src/Mvc/MvcManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
 
68 68
             $callback = route_callback();
69 69
 
70
-            if ($callback){
70
+            if ($callback) {
71 71
                 call_user_func_array($callback, $this->getCallbackArgs($routeArgs, $callback, $request, $response));
72 72
             } else {
73 73
 
Please login to merge, or discard this patch.