@@ -49,7 +49,7 @@ |
||
49 | 49 | } |
50 | 50 | |
51 | 51 | // Write YAML to a file. |
52 | - $panels_file = $base_path . '/data/panelizer.panels_display.node.'.$node->uuid() . '.yml'; |
|
52 | + $panels_file = $base_path.'/data/panelizer.panels_display.node.'.$node->uuid().'.yml'; |
|
53 | 53 | $configuration = \Drupal::service('panelizer')->getPanelsDisplay($node, 'full')->getConfiguration(); |
54 | 54 | $yaml = \Symfony\Component\Yaml\Yaml::dump($configuration, 99, 2); |
55 | 55 | file_put_contents($panels_file, $yaml); |
@@ -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 | } |
@@ -38,9 +38,9 @@ |
||
38 | 38 | * @When I instantiate the :plugin_id block in :theme |
39 | 39 | */ |
40 | 40 | public function instantiateBlock($plugin_id, $theme) { |
41 | - $this->visitPath('/admin/structure/block/add/' . $plugin_id . '/' . $theme); |
|
41 | + $this->visitPath('/admin/structure/block/add/'.$plugin_id.'/'.$theme); |
|
42 | 42 | |
43 | - $id = uniqid($theme . '_'); |
|
43 | + $id = uniqid($theme.'_'); |
|
44 | 44 | $this->minkContext->fillField('id', $id); |
45 | 45 | |
46 | 46 | /** @var UndoContext $undo */ |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | |
46 | 46 | if ($result != $count) { |
47 | 47 | throw new ExpectationException( |
48 | - '"' . $selector . '" matched ' . $result . ' element(s), expected ' . $count . '.', |
|
48 | + '"'.$selector.'" matched '.$result.' element(s), expected '.$count.'.', |
|
49 | 49 | $session->getDriver() |
50 | 50 | ); |
51 | 51 | } |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | |
72 | 72 | if ($result < $count) { |
73 | 73 | throw new ExpectationException( |
74 | - '"' . $selector . '" matched ' . $result . ' element(s), expected at least ' . $count . '.', |
|
74 | + '"'.$selector.'" matched '.$result.' element(s), expected at least '.$count.'.', |
|
75 | 75 | $session->getDriver() |
76 | 76 | ); |
77 | 77 | } |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | |
107 | 107 | if (trim($content)) { |
108 | 108 | throw new ExpectationException( |
109 | - 'Expected ' . $selector . ' to be empty but it is not.', |
|
109 | + 'Expected '.$selector.' to be empty but it is not.', |
|
110 | 110 | $this->getSession()->getDriver() |
111 | 111 | ); |
112 | 112 | } |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | $entity_type_manager = \Drupal::entityTypeManager(); |
164 | 164 | |
165 | 165 | for ($i = 0; $i < $count; $i++) { |
166 | - $uri = $random->image(uniqid('public://random_') . '.png', '240x240', '640x480'); |
|
166 | + $uri = $random->image(uniqid('public://random_').'.png', '240x240', '640x480'); |
|
167 | 167 | |
168 | 168 | /** @var \Drupal\file\FileInterface $file */ |
169 | 169 | $file = $entity_type_manager->getStorage('file')->create(['uri' => $uri]); |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | // Assert that the category exists... |
117 | 117 | $link = $this->assertSession() |
118 | 118 | ->elementExists('css', |
119 | - '.ipe-category[data-category="' . $category . '"]', |
|
119 | + '.ipe-category[data-category="'.$category.'"]', |
|
120 | 120 | $tab |
121 | 121 | ); |
122 | 122 | |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | return $this->assertSession() |
148 | 148 | ->elementExists( |
149 | 149 | 'css', |
150 | - '.ipe-block-plugin a[data-plugin-id="' . $plugin_id . '"]', |
|
150 | + '.ipe-block-plugin a[data-plugin-id="'.$plugin_id.'"]', |
|
151 | 151 | $category ? $this->openCategory($category) : $this->getActiveTab() |
152 | 152 | ); |
153 | 153 | } |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | $this->assertSession() |
168 | 168 | ->elementNotExists( |
169 | 169 | 'css', |
170 | - '.ipe-block-plugin a[data-plugin-id="' . $plugin_id . '"]', |
|
170 | + '.ipe-block-plugin a[data-plugin-id="'.$plugin_id.'"]', |
|
171 | 171 | $category ? $this->openCategory($category) : $this->getActiveTab() |
172 | 172 | ); |
173 | 173 | } |