Completed
Pull Request — master (#1981)
by Basil
02:03
created
core/helpers/Url.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      */
35 35
     public static function trailing($url, $slash = '/')
36 36
     {
37
-        return rtrim($url, $slash) . $slash;
37
+        return rtrim($url, $slash).$slash;
38 38
     }
39 39
     
40 40
     /**
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
     public static function ensureHttp($url, $https = false)
88 88
     {
89 89
         if (!preg_match("~^(?:f|ht)tps?://~i", $url)) {
90
-            $url = ($https ? "https://" : "http://") . $url;
90
+            $url = ($https ? "https://" : "http://").$url;
91 91
         }
92 92
         
93 93
         return $url;
@@ -140,14 +140,14 @@  discard block
 block discarded – undo
140 140
         if (StringHelper::contains('?', $url)) {
141 141
             // seperator already existing
142 142
             if (StringHelper::endsWith($url, '&')) {
143
-                return $url . $append;
143
+                return $url.$append;
144 144
             }
145 145
 
146 146
             // add seperator
147
-            return $url . '&' . $append;
147
+            return $url.'&'.$append;
148 148
         }
149 149
         
150 150
         // use ?
151
-        return $url . '?' . $append;
151
+        return $url.'?'.$append;
152 152
     }
153 153
 }
Please login to merge, or discard this patch.