Completed
Branch master (b800c5)
by Sergii
01:55
created
src/Context/RawTqContext.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
     {
243 243
         $file .= '.js';
244 244
         $modulePath = drupal_get_filename('module', 'system');
245
-        $destination = dirname($modulePath) . '/' . $file;
245
+        $destination = dirname($modulePath).'/'.$file;
246 246
         $injection = "\ndrupal_add_js('$destination', array('every_page' => TRUE));";
247 247
 
248 248
         if ($delete) {
@@ -252,13 +252,13 @@  discard block
 block discarded – undo
252 252
             $replace = '';
253 253
         } else {
254 254
             file_unmanaged_copy(
255
-                str_replace('Context', 'JavaScript', __DIR__) . '/' . $file,
255
+                str_replace('Context', 'JavaScript', __DIR__).'/'.$file,
256 256
                 $destination,
257 257
                 FILE_EXISTS_REPLACE
258 258
             );
259 259
 
260 260
             $search = 'system_add_module_assets();';
261
-            $replace = $search . $injection;
261
+            $replace = $search.$injection;
262 262
         }
263 263
 
264 264
         file_put_contents($modulePath, str_replace($search, $replace, file_get_contents($modulePath)));
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
     {
322 322
         // Obtain base URL when path is empty, or not starts from "//" or "http".
323 323
         if (empty($path) || strpos($path, '//') !== 0 && strpos($path, 'http') !== 0) {
324
-            $path = rtrim($this->getMinkParameter('base_url'), '/') . '/' . ltrim($path, '/');
324
+            $path = rtrim($this->getMinkParameter('base_url'), '/').'/'.ltrim($path, '/');
325 325
         }
326 326
 
327 327
         $url = parse_url($path);
@@ -337,7 +337,7 @@  discard block
 block discarded – undo
337 337
                 throw new \InvalidArgumentException(sprintf('%s is not valid scheme.', $url['scheme']));
338 338
             }
339 339
 
340
-            $path = $url['scheme'] . ':';
340
+            $path = $url['scheme'].':';
341 341
         } else {
342 342
             // Process "//" at the start.
343 343
             $path = '';
@@ -349,7 +349,7 @@  discard block
 block discarded – undo
349 349
             // Encode special characters in username and password. Useful
350 350
             // when some item contain something like "@" symbol.
351 351
             foreach (['user' => ':', 'pass' => '@'] as $part => $suffix) {
352
-                $path .= rawurlencode($url[$part]) . $suffix;
352
+                $path .= rawurlencode($url[$part]).$suffix;
353 353
             }
354 354
         }
355 355
 
@@ -358,7 +358,7 @@  discard block
 block discarded – undo
358 358
         // Append additional URL components.
359 359
         foreach (['port' => ':', 'path' => '', 'query' => '?', 'fragment' => '#'] as $part => $prefix) {
360 360
             if (isset($url[$part])) {
361
-                $path .= $prefix . $url[$part];
361
+                $path .= $prefix.$url[$part];
362 362
             }
363 363
         }
364 364
 
Please login to merge, or discard this patch.