@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | */ |
59 | 59 | protected $pattern = ""; |
60 | 60 | protected $callable; |
61 | - private $argsPattern = self::PARAMETER_CHARACTER . "(\\w+)"; |
|
61 | + private $argsPattern = self::PARAMETER_CHARACTER."(\\w+)"; |
|
62 | 62 | |
63 | 63 | public function __construct($pattern, $callable) { |
64 | 64 | $this->setPattern($pattern); |
@@ -70,13 +70,13 @@ discard block |
||
70 | 70 | $pattern = $this->getPattern(); |
71 | 71 | $match = []; |
72 | 72 | $pattern = str_replace("/", "\\/", $pattern); |
73 | - if (preg_match_all("/" . $this->argsPattern . "/", $pattern, $match)) { |
|
73 | + if (preg_match_all("/".$this->argsPattern."/", $pattern, $match)) { |
|
74 | 74 | $strings = $match[0]; |
75 | 75 | $parameters = $match[1]; |
76 | 76 | $this->params = $parameters; |
77 | 77 | $pattern = str_replace($strings, str_replace(self::PARAMETER_CHARACTER, "", $this->argsPattern), $pattern); |
78 | 78 | } |
79 | - $this->setPattern("/^" . $pattern . "$/"); |
|
79 | + $this->setPattern("/^".$pattern."$/"); |
|
80 | 80 | } |
81 | 81 | |
82 | 82 | public function setPattern($pattern) { |