Test Setup Failed
Branch master (7515a0)
by Alexpts
03:31
created
src/PTS/Routing/Middlewares/CallWithMatchParams.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function __invoke(RequestInterface $request, Route $route)
15 15
     {
16
-        $args = array_filter($route->getMatches(), function($name){
16
+        $args = array_filter($route->getMatches(), function($name) {
17 17
             return strpos($name, '_') !== 0;
18 18
         }, \ARRAY_FILTER_USE_KEY);
19 19
 
Please login to merge, or discard this patch.
src/PTS/Routing/Point/DynamicController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,6 +33,6 @@
 block discarded – undo
33 33
             throw new \BadMethodCallException('Not found controller name for dynamic controller point');
34 34
         }
35 35
 
36
-        return $this->prefix . ucfirst($matches['_controller']);
36
+        return $this->prefix.ucfirst($matches['_controller']);
37 37
     }
38 38
 }
Please login to merge, or discard this patch.
src/PTS/Routing/Matcher.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
     {
18 18
         $this->routeService = $routeService;
19 19
         $this->routeNotFound = new Route('', function(){
20
-           return null;
20
+            return null;
21 21
         });
22 22
     }
23 23
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
     public function __construct(RouteService $routeService)
17 17
     {
18 18
         $this->routeService = $routeService;
19
-        $this->routeNotFound = new Route('', function(){
19
+        $this->routeNotFound = new Route('', function() {
20 20
            return null;
21 21
         });
22 22
     }
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     {
58 58
         $regexp = $this->routeService->makeRegExp($route);
59 59
 
60
-        if (preg_match('~^' .  $regexp . '$~Uiu', $pathUrl, $values)) {
60
+        if (preg_match('~^'.$regexp.'$~Uiu', $pathUrl, $values)) {
61 61
             $filterValues = array_filter(array_keys($values), 'is_string');
62 62
             $matches = array_intersect_key($values, array_flip($filterValues));
63 63
             return $route->setMatches($matches);
Please login to merge, or discard this patch.