@@ -12,7 +12,7 @@ |
||
12 | 12 | foreach ($settings['editor']['formats'] as &$format) { |
13 | 13 | // Swap in our custom JS by adding a pseudo plugin. We do this as we do not |
14 | 14 | // provide a button, which is what traditional CKEditor plugins would do. |
15 | - $format['editorSettings']['drupalExternalPlugins']['df_tools_editor'] = base_path() . drupal_get_path('module', 'df_tools_editor') . '/js/df_tools_editor.js'; |
|
15 | + $format['editorSettings']['drupalExternalPlugins']['df_tools_editor'] = base_path().drupal_get_path('module', 'df_tools_editor').'/js/df_tools_editor.js'; |
|
16 | 16 | $format['editorSettings']['extraPlugins'] .= ',df_tools_editor'; |
17 | 17 | } |
18 | 18 | } |
@@ -1,4 +1,4 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -include_once drupal_get_path('module', 'locale') . '/locale.bulk.inc'; |
|
4 | -include_once drupal_get_path('module', 'locale') . '/locale.batch.inc'; |
|
3 | +include_once drupal_get_path('module', 'locale').'/locale.bulk.inc'; |
|
4 | +include_once drupal_get_path('module', 'locale').'/locale.batch.inc'; |
@@ -10,13 +10,13 @@ |
||
10 | 10 | foreach ($geofield_map as $entity_type_id => $fields) { |
11 | 11 | foreach ($fields as $field_name => $info) { |
12 | 12 | $args = array('@field_name' => $field_name); |
13 | - $data_key = $entity_type_id . '__' . $field_name; |
|
13 | + $data_key = $entity_type_id.'__'.$field_name; |
|
14 | 14 | |
15 | 15 | $field_coordinates_table_data = $data[$data_key][$field_name]; |
16 | - $data[$data_key][$data_key . '_simple_proximity'] = [ |
|
16 | + $data[$data_key][$data_key.'_simple_proximity'] = [ |
|
17 | 17 | 'group' => 'Content', |
18 | 18 | 'title' => t('Simple Proximity (@field_name)', $args), |
19 | - 'title short' => $field_coordinates_table_data['title short'] . t(' Simple Proximity'), |
|
19 | + 'title short' => $field_coordinates_table_data['title short'].t(' Simple Proximity'), |
|
20 | 20 | 'help' => $field_coordinates_table_data['help'], |
21 | 21 | 'real field' => $field_name, |
22 | 22 | 'filter' => [ |
@@ -6,6 +6,6 @@ |
||
6 | 6 | function df_tools_frontend_library_info_alter(&$libraries, $extension) { |
7 | 7 | if ($extension == 'image') { |
8 | 8 | $path = drupal_get_path('module', 'df_tools_frontend'); |
9 | - $libraries['quickedit.inPlaceEditor.image']['js']['/' . $path . '/js/quickedit_image_browser.js'] = []; |
|
9 | + $libraries['quickedit.inPlaceEditor.image']['js']['/'.$path.'/js/quickedit_image_browser.js'] = []; |
|
10 | 10 | } |
11 | 11 | } |
@@ -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, ']')); |
@@ -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']], |
@@ -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 |
@@ -60,7 +60,7 @@ |
||
60 | 60 | if ($node = $event->getRequest()->get('node')) { |
61 | 61 | if (\Drupal::currentUser()->hasPermission('view latest version')) { |
62 | 62 | $theme = $this->themeManager->getActiveTheme()->getName(); |
63 | - $tag = 'config:block.block.' . $theme . '_local_actions'; |
|
63 | + $tag = 'config:block.block.'.$theme.'_local_actions'; |
|
64 | 64 | $this->cacheTagsInvalidator->invalidateTags([$tag]); |
65 | 65 | } |
66 | 66 | } |
@@ -18,7 +18,7 @@ |
||
18 | 18 | * {@inheritdoc} |
19 | 19 | */ |
20 | 20 | public static function getSubscribedEvents() { |
21 | - $events[RoutingEvents::ALTER] = ['onAlterRoutes',-9999]; // negative Values means "late" |
|
21 | + $events[RoutingEvents::ALTER] = ['onAlterRoutes', -9999]; // negative Values means "late" |
|
22 | 22 | return $events; |
23 | 23 | } |
24 | 24 |