Test Failed
Push — master ( 0ee32e...41c938 )
by Dan
07:10
created
Src/Router/RouteCollection.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -231,8 +231,8 @@  discard block
 block discarded – undo
231 231
 
232 232
         $route = \implode('', $this->group) . $routePattern;
233 233
 
234
-        if (substr($route, -1) === '/' && strlen($route) > 1){
235
-            $route = rtrim($route,'/');
234
+        if (substr($route, -1) === '/' && strlen($route) > 1) {
235
+            $route = rtrim($route, '/');
236 236
         }
237 237
 
238 238
         return $route;
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
                     )
255 255
                 );
256 256
                 $new->collection[] = $addRoute;
257
-            } catch (\Exception $e) {
257
+            }catch (\Exception $e) {
258 258
                 if ($throw) {
259 259
                     throw new RouteException($e->getMessage());
260 260
                 }
Please login to merge, or discard this patch.
Src/Router/Loaders/YamlLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
                         $collection->addRoute($routeMethod, $route['path'], $route['handler'], $route['names']);
69 69
                     }
70 70
                 }
71
-            } catch (ParseException $e) {
71
+            }catch (ParseException $e) {
72 72
                 throw new RouterException($e->getMessage());
73 73
             }
74 74
 
Please login to merge, or discard this patch.
Src/Router/Dispatcher/Dispatcher.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
 
117 117
         try {
118 118
             $resolvedHandler['controller'] = $this->_findClass($controllerMethod[0]);
119
-        } catch (\Exception $e) {
119
+        }catch (\Exception $e) {
120 120
             throw new DispatchException($e->getMessage());
121 121
         }
122 122
 
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
 
168 168
         try {
169 169
             $this->_getParamsFromVariableName($args);
170
-        } catch (\Exception $e) {
170
+        }catch (\Exception $e) {
171 171
             $this->_getParamsFromTypeHint($args);
172 172
         }
173 173
 
@@ -293,12 +293,12 @@  discard block
 block discarded – undo
293 293
         try {
294 294
             $this->_checkWhiteList($controller, $this->options);
295 295
             $this->_checkBlackList($controller, $this->options);
296
-        } catch (\Exception $e) {
296
+        }catch (\Exception $e) {
297 297
             unset($controllerObj);
298 298
             throw new DispatchException($e->getMessage());
299 299
         }
300 300
 
301
-        if (!method_exists($controllerObj,$method)){
301
+        if (!method_exists($controllerObj, $method)) {
302 302
             throw new DispatchException('Controller method does not exist');
303 303
         }
304 304
 
Please login to merge, or discard this patch.