8000 fixed CS · symfony/symfony@ba1cd26 · GitHub
[go: up one dir, main page]

Skip to content

Commit ba1cd26

Browse files
committed
fixed CS
1 parent f03dc6e commit ba1cd26

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Component/Routing/Generator/UrlGenerator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,15 +187,15 @@ protected function doGenerate($variables, $defaults, $requirements, $tokens, $pa
187187

188188
if ('' === $url) {
189189
$url = '/';
190-
} else if (preg_match($this->urlEncodingSkipRegexp, $url)) {
191-
// the contexts base URL is already encoded (see Symfony\Component\HttpFoundation\Request)
190+
} elseif (preg_match($this->urlEncodingSkipRegexp, $url)) {
191+
// the context base URL is already encoded (see Symfony\Component\HttpFoundation\Request)
192192
$url = strtr(rawurlencode($url), $this->decodedChars);
193193
}
194194

195195
// the path segments "." and ".." are interpreted as relative reference when resolving a URI; see http://tools.ietf.org/html/rfc3986#section-3.3
196196
// so we need to encode them as they are not used for this purpose here
197197
// otherwise we would generate a URI that, when followed by a user agent (e.g. browser), does not match this route
198-
if(false !== strpos($url, '/.')) {
198+
if (false !== strpos($url, '/.')) {
199199
$url = strtr($url, array('/../' => '/%2E%2E/', '/./' => '/%2E/'));
200200
if ('/..' === substr($url, -3)) {
201201
$url = substr($url, 0, -2).'%2E%2E';

0 commit comments

Comments
 (0)
0