Completed
Push — master ( 949f98...8a98eb )
by Alejandro
11:04
created
src/Route.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
     private $argsPattern = "(\\w+)";
62 62
 
63 63
     public function __construct($pattern, $callable) {
64
-        $this->argsPattern = self::PARAMETER_CHARACTER . $this->argsPattern;
64
+        $this->argsPattern = self::PARAMETER_CHARACTER.$this->argsPattern;
65 65
         $this->setPattern($pattern);
66 66
         $this->setCallable($callable);
67 67
         $this->filterPattern();
@@ -71,13 +71,13 @@  discard block
 block discarded – undo
71 71
         $pattern = $this->getPattern();
72 72
         $match = [];
73 73
         $pattern = str_replace("/", "\\/", $pattern);
74
-        if (preg_match_all("/" . $this->argsPattern . "/", $pattern, $match)) {
74
+        if (preg_match_all("/".$this->argsPattern."/", $pattern, $match)) {
75 75
             $strings = $match[0];
76 76
             $parameters = $match[1];
77 77
             $this->params = $parameters;
78 78
             $pattern = str_replace($strings, str_replace(self::PARAMETER_CHARACTER, "", $this->argsPattern), $pattern);
79 79
         }
80
-        $this->setPattern("/^" . $pattern . "$/");
80
+        $this->setPattern("/^".$pattern."$/");
81 81
     }
82 82
 
83 83
     public function setPattern($pattern) {
Please login to merge, or discard this patch.