@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | /** @var Uri $uri */ |
63 | 63 | $uri = $this->bootstrap->getActiveRequestHandler()->getHttpRequest()->getUri(); |
64 | 64 | $relativeUrl = rtrim($uri->getPath(), '/'); |
65 | - if($this->startsWith($relativeUrl, '/')){ |
|
65 | + if ($this->startsWith($relativeUrl, '/')) { |
|
66 | 66 | $tempRelativeUrl = substr($relativeUrl, 1); |
67 | 67 | } |
68 | 68 | $relativeUrlWithQueryString = $relativeUrl . ($uri->getQuery() ? '?' . $uri->getQuery() : ''); |
@@ -92,10 +92,10 @@ discard block |
||
92 | 92 | /** @var NodeData $node */ |
93 | 93 | // Prevent partial matches |
94 | 94 | $redirectUrl = preg_replace('#^https?://#', '', $node->getProperty('redirectUrl')); |
95 | - if($this->endsWith($redirectUrl, '/') === TRUE){ |
|
95 | + if ($this->endsWith($redirectUrl, '/') === TRUE) { |
|
96 | 96 | $redirectUrl = substr($redirectUrl, 0, -1); |
97 | 97 | } |
98 | - if($this->startsWith($relativeUrl, '/') === TRUE){ |
|
98 | + if ($this->startsWith($relativeUrl, '/') === TRUE) { |
|
99 | 99 | $relativeUrl = substr($relativeUrl, 1); |
100 | 100 | } |
101 | 101 |