Completed
Push — master ( f3c8e7...741696 )
by Alexpts
02:57
created
src/PTS/Routing/Matcher.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 namespace PTS\Routing;
4 4
 
5 5
 class Matcher
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
     public function __construct(RouteService $routeService)
13 13
     {
14 14
         $this->routeService = $routeService;
15
-        $this->routeNotFound = new Route('', function(){
15
+        $this->routeNotFound = new Route('', function() {
16 16
            return null;
17 17
         });
18 18
     }
@@ -35,13 +35,13 @@  discard block
 block discarded – undo
35 35
         yield $this->routeNotFound;
36 36
     }
37 37
 
38
-    protected function matchRule(Route $route, string $pathUrl) : ?Route
38
+    protected function matchRule(Route $route, string $pathUrl) : ? Route
39 39
     {
40 40
         $activeRoute = null;
41 41
         
42 42
         $regexp = $this->routeService->makeRegExp($route);
43 43
 
44
-        if (preg_match('~^' .  $regexp . '$~Uiu', $pathUrl, $values)) {
44
+        if (preg_match('~^'.$regexp.'$~Uiu', $pathUrl, $values)) {
45 45
             $filterValues = array_filter(array_keys($values), 'is_string');
46 46
             $matches = array_intersect_key($values, array_flip($filterValues));
47 47
             $activeRoute = $route->setMatches($matches);
Please login to merge, or discard this patch.
src/PTS/Routing/RouteService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 namespace PTS\Routing;
4 4
 
5 5
 class RouteService
Please login to merge, or discard this patch.
src/PTS/Routing/Traits/MiddlewaresTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 namespace PTS\Routing\Traits;
4 4
 
5 5
 use Psr\Http\Message\RequestInterface;
Please login to merge, or discard this patch.
src/PTS/Routing/EndPoint.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 namespace PTS\Routing;
4 4
 
5 5
 class EndPoint
Please login to merge, or discard this patch.
src/PTS/Routing/Route.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 namespace PTS\Routing;
4 4
 
5 5
 use Psr\Http\Message\RequestInterface;
Please login to merge, or discard this patch.
src/PTS/Routing/CollectionRoute.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 namespace PTS\Routing;
4 4
 
5 5
 use PTS\Tools\Collection;
Please login to merge, or discard this patch.