Completed
Push — master ( 59b6d7...05a7a6 )
by
unknown
02:14
created
Classes/MOC/Redirects/Routing/RedirectFrontendNodeRoutePartHandler.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.