@@ -20,8 +20,8 @@ |
||
20 | 20 | ->getStorage('file')->loadByProperties(['filename' => $image]); |
21 | 21 | |
22 | 22 | if (empty($files)) { |
23 | - $base_path = dirname($this->configuration['path']) . '/images/'; |
|
24 | - $path = $base_path . $image; |
|
23 | + $base_path = dirname($this->configuration['path']).'/images/'; |
|
24 | + $path = $base_path.$image; |
|
25 | 25 | $data = file_get_contents($path); |
26 | 26 | $uri = file_build_uri($image); |
27 | 27 | $file = file_save_data($data, $uri); |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | /** @var Drupal\migrate_source_csv\CSVFileObject $iterator */ |
23 | 23 | $iterator = $source->initializeIterator(); |
24 | 24 | $base_path = $iterator->getPath(); |
25 | - $filename = $base_path . '/' . $iterator->getFilename(); |
|
25 | + $filename = $base_path.'/'.$iterator->getFilename(); |
|
26 | 26 | |
27 | 27 | $destination = $migration->getDestinationPlugin(); |
28 | 28 | $entity_type = explode(':', $destination->getPluginId())[1]; |
@@ -73,14 +73,14 @@ discard block |
||
73 | 73 | $entity = $entity_storage->load($id); |
74 | 74 | |
75 | 75 | // See if a Panelizer config file exists for this Node. |
76 | - $panels_file = $base_path . '/panelizer.panels_display.' . $entity_type . '.' . $entity->uuid() . '.yml'; |
|
76 | + $panels_file = $base_path.'/panelizer.panels_display.'.$entity_type.'.'.$entity->uuid().'.yml'; |
|
77 | 77 | if (file_exists($panels_file) && isset($entity->panelizer)) { |
78 | 78 | $yaml = file_get_contents($panels_file); |
79 | 79 | |
80 | 80 | $panels_display = Yaml::parse($yaml); |
81 | 81 | |
82 | 82 | // The storage ID isn't based on UUIDs, unfortunately. Hotswap it with current info. |
83 | - $panels_display['storage_id'] = $entity_type . ':' . $entity->id() . ':full:' . $entity->getRevisionId(); |
|
83 | + $panels_display['storage_id'] = $entity_type.':'.$entity->id().':full:'.$entity->getRevisionId(); |
|
84 | 84 | |
85 | 85 | // Set the Panels Display to match what's defined in YAML. |
86 | 86 | $entity->panelizer->panels_display = $panels_display; |
@@ -43,12 +43,12 @@ discard block |
||
43 | 43 | } |
44 | 44 | else { |
45 | 45 | foreach ($value as $j) { |
46 | - $output[] = $this->keysToString($keys) . '[] = ' . $j; |
|
46 | + $output[] = $this->keysToString($keys).'[] = '.$j; |
|
47 | 47 | } |
48 | 48 | } |
49 | 49 | } |
50 | 50 | else { |
51 | - $output[] = $this->keysToString($keys) . ' = ' . $value; |
|
51 | + $output[] = $this->keysToString($keys).' = '.$value; |
|
52 | 52 | } |
53 | 53 | |
54 | 54 | array_pop($keys); |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | protected function keysToString(array $keys) { |
70 | 70 | $head = array_shift($keys); |
71 | 71 | if ($keys) { |
72 | - return $head . '[' . implode('][', $keys) . ']'; |
|
72 | + return $head.'['.implode('][', $keys).']'; |
|
73 | 73 | } |
74 | 74 | else { |
75 | 75 | return $head; |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | foreach (['key', 'value1', 'value2', 'value3'] as $var) { |
124 | 124 | $$var = isset($match[++$i]) ? $match[$i] : ''; |
125 | 125 | } |
126 | - $value = stripslashes(substr($value1, 1, -1)) . stripslashes(substr($value2, 1, -1)) . $value3; |
|
126 | + $value = stripslashes(substr($value1, 1, -1)).stripslashes(substr($value2, 1, -1)).$value3; |
|
127 | 127 | |
128 | 128 | // Parse array syntax. |
129 | 129 | $keys = preg_split('/\]?\[/', rtrim($key, ']')); |
@@ -28,7 +28,7 @@ |
||
28 | 28 | /** @var \Composer\Package\Link $package */ |
29 | 29 | foreach ($patched_dependencies as $package) { |
30 | 30 | if (static::packageIsUnpinned($package)) { |
31 | - $error[] = $package->getTarget() . ': ' . $package->getPrettyConstraint(); |
|
31 | + $error[] = $package->getTarget().': '.$package->getPrettyConstraint(); |
|
32 | 32 | } |
33 | 33 | } |
34 | 34 | if (!empty($error)) { |
@@ -284,7 +284,7 @@ |
||
284 | 284 | } |
285 | 285 | else if ($referenced_entity instanceof MediaInterface) { |
286 | 286 | if ($depth < self::DEPTH_LIMIT && $file = $this->getFileFromEntity($referenced_entity)) { |
287 | - $return = $file; |
|
287 | + $return = $file; |
|
288 | 288 | } |
289 | 289 | } |
290 | 290 | } |
@@ -139,7 +139,7 @@ |
||
139 | 139 | $selection['table'][$mid] = [ |
140 | 140 | '#attributes' => [ |
141 | 141 | 'class' => ['draggable'], |
142 | - 'data-entity-id' => $media->getEntityTypeId() . ':' . $mid, |
|
142 | + 'data-entity-id' => $media->getEntityTypeId().':'.$mid, |
|
143 | 143 | ], |
144 | 144 | 'title' => ['#markup' => $media->label()], |
145 | 145 | 'type' => ['#markup' => $bundle_info[$media->bundle()]['label']], |
@@ -57,7 +57,7 @@ |
||
57 | 57 | |
58 | 58 | /** @var \Acquia\LightningExtension\Context\UtilityContext $utility */ |
59 | 59 | $utility = $this->getContext(UtilityContext::class); |
60 | - $utility->acceptAlerts(function () { |
|
60 | + $utility->acceptAlerts(function() { |
|
61 | 61 | $this->awaitAjax(); |
62 | 62 | }); |
63 | 63 | } |
@@ -181,11 +181,11 @@ |
||
181 | 181 | // Check if this field is an Address field. |
182 | 182 | if (isset($address['address_line1'])) { |
183 | 183 | // Format the address as a single string. |
184 | - $string .= $address['address_line1'] . "\n"; |
|
185 | - $string .= !empty($address['address_line2']) ? $address['address_line2'] . "\n" : ''; |
|
186 | - $string .= $address['locality'] . ', '; |
|
187 | - $string .= str_replace('US-', '', $address['administrative_area']) . ' '; |
|
188 | - $string .= $address['postal_code'] . "\n"; |
|
184 | + $string .= $address['address_line1']."\n"; |
|
185 | + $string .= !empty($address['address_line2']) ? $address['address_line2']."\n" : ''; |
|
186 | + $string .= $address['locality'].', '; |
|
187 | + $string .= str_replace('US-', '', $address['administrative_area']).' '; |
|
188 | + $string .= $address['postal_code']."\n"; |
|
189 | 189 | $string .= $address['country_code']; |
190 | 190 | } |
191 | 191 |
@@ -19,7 +19,7 @@ |
||
19 | 19 | $image_names = explode(',', $images); |
20 | 20 | $files = []; |
21 | 21 | foreach ($image_names as $image_name) { |
22 | - $path = dirname($this->configuration['path']) . '/images/' . $image_name; |
|
22 | + $path = dirname($this->configuration['path']).'/images/'.$image_name; |
|
23 | 23 | $data = file_get_contents($path); |
24 | 24 | $uri = file_build_uri($image_name); |
25 | 25 | $files[] = file_save_data($data, $uri); |