@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | { |
79 | 79 | $method = strtolower($method); |
80 | 80 | |
81 | - $path = preg_replace('~^' . $this->getBasePath() . '~', '', $path); |
|
81 | + $path = preg_replace('~^'.$this->getBasePath().'~', '', $path); |
|
82 | 82 | |
83 | 83 | $uri = new Uri($path); |
84 | 84 | |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | continue; |
97 | 97 | } |
98 | 98 | |
99 | - $pathItemPattern = '~^' . preg_replace('~{(.*?)}~', '(?<\1>[^/]+)', $pathItem) . '$~'; |
|
99 | + $pathItemPattern = '~^'.preg_replace('~{(.*?)}~', '(?<\1>[^/]+)', $pathItem).'$~'; |
|
100 | 100 | |
101 | 101 | $matches = []; |
102 | 102 | if (empty($uri->getPath())) { |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | } |
126 | 126 | } |
127 | 127 | |
128 | - throw new PathNotFoundException('Path "' . $path . '" not found'); |
|
128 | + throw new PathNotFoundException('Path "'.$path.'" not found'); |
|
129 | 129 | } |
130 | 130 | |
131 | 131 | /** |