Completed
Pull Request — master (#16)
by Sergii
04:31
created
src/Context/RawTqContext.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
     {
281 281
         // Obtain base URL when path is empty, or not starts from "//" or "http".
282 282
         if (empty($path) || strpos($path, '//') !== 0 && strpos($path, 'http') !== 0) {
283
-            $path = rtrim($this->getMinkParameter('base_url'), '/') . '/' . ltrim($path, '/');
283
+            $path = rtrim($this->getMinkParameter('base_url'), '/').'/'.ltrim($path, '/');
284 284
         }
285 285
 
286 286
         $url = parse_url(strtolower($path));
@@ -299,13 +299,13 @@  discard block
 block discarded – undo
299 299
             throw new \InvalidArgumentException(sprintf('%s - is not valid scheme.', $url['scheme']));
300 300
         }
301 301
 
302
-        $path = $url['scheme'] . '://';
302
+        $path = $url['scheme'].'://';
303 303
 
304 304
         if (isset($url['user'], $url['pass'])) {
305 305
             // Encode special characters in username and password. Useful
306 306
             // when some item contain something like "@" symbol.
307 307
             foreach (['user' => ':', 'pass' => '@'] as $part => $suffix) {
308
-                $path .= rawurlencode($url[$part]) . $suffix;
308
+                $path .= rawurlencode($url[$part]).$suffix;
309 309
             }
310 310
         }
311 311
 
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
         // Append additional URL components.
315 315
         foreach (['port' => ':', 'path' => '', 'query' => '?', 'fragment' => '#'] as $part => $prefix) {
316 316
             if (isset($url[$part])) {
317
-                $path .= $prefix . $url[$part];
317
+                $path .= $prefix.$url[$part];
318 318
             }
319 319
         }
320 320
 
Please login to merge, or discard this patch.