@@ -287,7 +287,7 @@ discard block |
||
287 | 287 | { |
288 | 288 | // Obtain base URL when path is empty, or not starts from "//" or "http". |
289 | 289 | if (empty($path) || strpos($path, '//') !== 0 && strpos($path, 'http') !== 0) { |
290 | - $path = rtrim($this->getMinkParameter('base_url'), '/') . '/' . ltrim($path, '/'); |
|
290 | + $path = rtrim($this->getMinkParameter('base_url'), '/').'/'.ltrim($path, '/'); |
|
291 | 291 | } |
292 | 292 | |
293 | 293 | $url = parse_url($path); |
@@ -303,7 +303,7 @@ discard block |
||
303 | 303 | throw new \InvalidArgumentException(sprintf('%s is not valid scheme.', $url['scheme'])); |
304 | 304 | } |
305 | 305 | |
306 | - $path = $url['scheme'] . ':'; |
|
306 | + $path = $url['scheme'].':'; |
|
307 | 307 | } else { |
308 | 308 | // Process "//" at the start. |
309 | 309 | $path = ''; |
@@ -315,7 +315,7 @@ discard block |
||
315 | 315 | // Encode special characters in username and password. Useful |
316 | 316 | // when some item contain something like "@" symbol. |
317 | 317 | foreach (['user' => ':', 'pass' => '@'] as $part => $suffix) { |
318 | - $path .= rawurlencode($url[$part]) . $suffix; |
|
318 | + $path .= rawurlencode($url[$part]).$suffix; |
|
319 | 319 | } |
320 | 320 | } |
321 | 321 | |
@@ -324,7 +324,7 @@ discard block |
||
324 | 324 | // Append additional URL components. |
325 | 325 | foreach (['port' => ':', 'path' => '', 'query' => '?', 'fragment' => '#'] as $part => $prefix) { |
326 | 326 | if (isset($url[$part])) { |
327 | - $path .= $prefix . $url[$part]; |
|
327 | + $path .= $prefix.$url[$part]; |
|
328 | 328 | } |
329 | 329 | } |
330 | 330 |
@@ -73,6 +73,6 @@ |
||
73 | 73 | $operation = "/$operation"; |
74 | 74 | } |
75 | 75 | |
76 | - return $this->entityType() . "/$id$operation"; |
|
76 | + return $this->entityType()."/$id$operation"; |
|
77 | 77 | } |
78 | 78 | } |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | $entity = entity_create($entityType, $values); |
164 | 164 | |
165 | 165 | entity_save($entityType, $entity); |
166 | - list($entityId, , $bundle) = entity_extract_ids($entityType, $entity); |
|
166 | + list($entityId,, $bundle) = entity_extract_ids($entityType, $entity); |
|
167 | 167 | |
168 | 168 | return [$entityId, $entityType, $bundle]; |
169 | 169 | } |
@@ -267,7 +267,7 @@ discard block |
||
267 | 267 | { |
268 | 268 | $file .= '.js'; |
269 | 269 | $modulePath = static::drupalGetFilename('module', 'system'); |
270 | - $destination = dirname($modulePath) . '/' . $file; |
|
270 | + $destination = dirname($modulePath).'/'.$file; |
|
271 | 271 | $injection = "\ndrupal_add_js('$destination', array('every_page' => TRUE));"; |
272 | 272 | |
273 | 273 | if ($delete) { |
@@ -277,13 +277,13 @@ discard block |
||
277 | 277 | $replace = ''; |
278 | 278 | } else { |
279 | 279 | static::fileUnmanagedCopy( |
280 | - str_replace('Context', 'JavaScript', __DIR__) . '/' . $file, |
|
280 | + str_replace('Context', 'JavaScript', __DIR__).'/'.$file, |
|
281 | 281 | $destination, |
282 | 282 | FILE_EXISTS_REPLACE |
283 | 283 | ); |
284 | 284 | |
285 | 285 | $search = 'system_add_module_assets();'; |
286 | - $replace = $search . $injection; |
|
286 | + $replace = $search.$injection; |
|
287 | 287 | } |
288 | 288 | |
289 | 289 | file_put_contents($modulePath, str_replace($search, $replace, file_get_contents($modulePath))); |