@@ -20,19 +20,19 @@ |
||
20 | 20 | 'render element' => 'content', |
21 | 21 | 'base hook' => 'node', |
22 | 22 | 'template' => 'node--cta', |
23 | - 'path' => drupal_get_path('module', 'df_tools_cta') . '/templates', |
|
23 | + 'path' => drupal_get_path('module', 'df_tools_cta').'/templates', |
|
24 | 24 | ); |
25 | 25 | $theme['node__cta__callout'] = array( |
26 | 26 | 'render element' => 'content', |
27 | 27 | 'base hook' => 'node', |
28 | 28 | 'template' => 'node--cta--callout', |
29 | - 'path' => drupal_get_path('module', 'df_tools_cta') . '/templates', |
|
29 | + 'path' => drupal_get_path('module', 'df_tools_cta').'/templates', |
|
30 | 30 | ); |
31 | 31 | $theme['node__cta__notification'] = array( |
32 | 32 | 'render element' => 'content', |
33 | 33 | 'base hook' => 'node', |
34 | 34 | 'template' => 'node--cta--notification', |
35 | - 'path' => drupal_get_path('module', 'df_tools_cta') . '/templates', |
|
35 | + 'path' => drupal_get_path('module', 'df_tools_cta').'/templates', |
|
36 | 36 | ); |
37 | 37 | return $theme; |
38 | 38 | } |
@@ -11,14 +11,14 @@ |
||
11 | 11 | function df_tools_gallery_library_info_alter(&$libraries, $extension) { |
12 | 12 | // Optionally use the Libraries module to determine our library paths. |
13 | 13 | if ($extension == 'df_tools_gallery' && \Drupal::moduleHandler()->moduleExists('libraries')) { |
14 | - $imagesloaded_path = libraries_get_path('imagesloaded') . '/imagesloaded.pkgd.min.js'; |
|
15 | - $masonry_path = libraries_get_path('masonry') . '/dist/masonry.pkgd.min.js'; |
|
14 | + $imagesloaded_path = libraries_get_path('imagesloaded').'/imagesloaded.pkgd.min.js'; |
|
15 | + $masonry_path = libraries_get_path('masonry').'/dist/masonry.pkgd.min.js'; |
|
16 | 16 | $lightbox2_path = libraries_get_path('lightbox2'); |
17 | 17 | |
18 | - $libraries['lightbox2']['css']['theme'] = ['/' . $lightbox2_path . '/dist/css/lightbox.min.css' => []]; |
|
19 | - $libraries['lightbox2']['js'] = ['/' . $lightbox2_path . '/dist/js/lightbox.min.js' => ['minified' => 'true']]; |
|
20 | - $libraries['imagesloaded']['js'] = ['/' . $imagesloaded_path => ['minified' => 'true']]; |
|
21 | - $libraries['masonry']['js'] = ['/' . $masonry_path => ['minified' => 'true']]; |
|
18 | + $libraries['lightbox2']['css']['theme'] = ['/'.$lightbox2_path.'/dist/css/lightbox.min.css' => []]; |
|
19 | + $libraries['lightbox2']['js'] = ['/'.$lightbox2_path.'/dist/js/lightbox.min.js' => ['minified' => 'true']]; |
|
20 | + $libraries['imagesloaded']['js'] = ['/'.$imagesloaded_path => ['minified' => 'true']]; |
|
21 | + $libraries['masonry']['js'] = ['/'.$masonry_path => ['minified' => 'true']]; |
|
22 | 22 | } |
23 | 23 | } |
24 | 24 |
@@ -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); |
@@ -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); |
@@ -11,11 +11,11 @@ |
||
11 | 11 | function df_tools_editor_editor_js_settings_alter(array &$settings) { |
12 | 12 | foreach ($settings['editor']['formats'] as &$format) { |
13 | 13 | // Set the editor skin to Moono-Lisa. |
14 | - $format['editorSettings']['skin'] = 'moono-lisa,' . base_path() . drupal_get_path('module', 'df_tools_editor') . '/skins/moono-lisa/'; |
|
14 | + $format['editorSettings']['skin'] = 'moono-lisa,'.base_path().drupal_get_path('module', 'df_tools_editor').'/skins/moono-lisa/'; |
|
15 | 15 | |
16 | 16 | // Swap in our custom JS by adding a pseudo plugin. We do this as we do not |
17 | 17 | // provide a button, which is what traditional CKEditor plugins would do. |
18 | - $format['editorSettings']['drupalExternalPlugins']['df_tools_editor'] = base_path() . drupal_get_path('module', 'df_tools_editor') . '/js/df_tools_editor.js'; |
|
18 | + $format['editorSettings']['drupalExternalPlugins']['df_tools_editor'] = base_path().drupal_get_path('module', 'df_tools_editor').'/js/df_tools_editor.js'; |
|
19 | 19 | $format['editorSettings']['extraPlugins'] .= ',df_tools_editor'; |
20 | 20 | } |
21 | 21 | } |
@@ -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 | } |