@@ -53,8 +53,7 @@ |
||
| 53 | 53 | foreach ($arguments as $argument) { |
| 54 | 54 | if ($argument{0} == '-') { |
| 55 | 55 | $task->rawArg($argument); |
| 56 | - } |
|
| 57 | - else { |
|
| 56 | + } else { |
|
| 58 | 57 | $feature = "tests/features/$argument"; |
| 59 | 58 | |
| 60 | 59 | if (file_exists("$feature.feature")) { |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | * @return \Robo\Contract\TaskInterface |
| 40 | 40 | * The task to execute. |
| 41 | 41 | */ |
| 42 | - public function configureBehat ($base_url = NULL) { |
|
| 42 | + public function configureBehat($base_url = NULL) { |
|
| 43 | 43 | $configuration = []; |
| 44 | 44 | |
| 45 | 45 | /** @var Finder $partials */ |
@@ -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 | |
@@ -126,8 +126,7 @@ |
||
| 126 | 126 | $coordinates = $this->getSetting('show_coordinates'); |
| 127 | 127 | if ($coordinates) { |
| 128 | 128 | $summary[] = $this->t('Coordinates are shown'); |
| 129 | - } |
|
| 130 | - else { |
|
| 129 | + } else { |
|
| 131 | 130 | $summary[] = $this->t('Coordinates are hidden'); |
| 132 | 131 | } |
| 133 | 132 | |
@@ -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 | |
@@ -22,12 +22,12 @@ |
||
| 22 | 22 | public function build() { |
| 23 | 23 | $build = [ |
| 24 | 24 | '#markup' => |
| 25 | - '<div class="df-tools-magellan-block hide-for-small-only full-width-row sticky-container">' . |
|
| 26 | - ' <div data-sticky-light>' . |
|
| 27 | - ' <nav data-magellan-light>' . |
|
| 28 | - ' <ul class="horizontal menu nav expanded"></ul>' . |
|
| 29 | - ' </nav>' . |
|
| 30 | - ' </div>' . |
|
| 25 | + '<div class="df-tools-magellan-block hide-for-small-only full-width-row sticky-container">'. |
|
| 26 | + ' <div data-sticky-light>'. |
|
| 27 | + ' <nav data-magellan-light>'. |
|
| 28 | + ' <ul class="horizontal menu nav expanded"></ul>'. |
|
| 29 | + ' </nav>'. |
|
| 30 | + ' </div>'. |
|
| 31 | 31 | '</div>', |
| 32 | 32 | ]; |
| 33 | 33 | |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | batch_set($batch); |
| 91 | 91 | // Set a batch to update configuration as well. |
| 92 | 92 | if ($batch = locale_config_batch_update_components($options, $langcodes)) { |
| 93 | - $batch['file'] = drupal_get_path('module', 'df_tools_translation') . '/df_tools_translation.batch.inc'; |
|
| 93 | + $batch['file'] = drupal_get_path('module', 'df_tools_translation').'/df_tools_translation.batch.inc'; |
|
| 94 | 94 | batch_set($batch); |
| 95 | 95 | } |
| 96 | 96 | } |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | |
| 117 | 117 | // Import each file. |
| 118 | 118 | foreach ($langcodes as $langcode) { |
| 119 | - $filepath = DRUPAL_ROOT . '/' . $path . '/translations/' . $langcode . '.po'; |
|
| 119 | + $filepath = DRUPAL_ROOT.'/'.$path.'/translations/'.$langcode.'.po'; |
|
| 120 | 120 | if (file_exists($filepath)) { |
| 121 | 121 | \Drupal::moduleHandler()->loadInclude('locale', 'bulk.inc'); |
| 122 | 122 | \Drupal::moduleHandler()->loadInclude('locale', 'translation.inc'); |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | ]); |
| 131 | 131 | |
| 132 | 132 | $original_file = (object) [ |
| 133 | - 'filename' => $langcode . '.po', |
|
| 133 | + 'filename' => $langcode.'.po', |
|
| 134 | 134 | 'uri' => $filepath |
| 135 | 135 | ]; |
| 136 | 136 | $file = locale_translate_file_attach_properties($original_file, $options); |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | if ($langcode == 'en') { |
| 174 | 174 | $langcode = ''; |
| 175 | 175 | } |
| 176 | - $url = \Drupal\Core\Url::fromUri('base:/' . $langcode . $alias); |
|
| 176 | + $url = \Drupal\Core\Url::fromUri('base:/'.$langcode.$alias); |
|
| 177 | 177 | |
| 178 | 178 | $current_name = [ |
| 179 | 179 | '#markup' => t($language->getName()) |
@@ -112,8 +112,7 @@ discard block |
||
| 112 | 112 | $name = 'drupal'; |
| 113 | 113 | } |
| 114 | 114 | $info['projects'][$name] = $this->buildProject($package); |
| 115 | - } |
|
| 116 | - elseif ($this->isLightning($package)) { |
|
| 115 | + } elseif ($this->isLightning($package)) { |
|
| 117 | 116 | $info['projects'][$name] = $this->buildProject($package); |
| 118 | 117 | |
| 119 | 118 | // The Lightning project uses semantic versioning. |
@@ -283,8 +282,7 @@ discard block |
||
| 283 | 282 | 'type' => 'get', |
| 284 | 283 | 'url' => $package['dist']['url'], |
| 285 | 284 | ]; |
| 286 | - } |
|
| 287 | - else { |
|
| 285 | + } else { |
|
| 288 | 286 | $download = [ |
| 289 | 287 | 'type' => 'git', |
| 290 | 288 | 'url' => str_replace('[email protected]:', 'https://github.com/', $package['source']['url']), |
@@ -9,8 +9,7 @@ |
||
| 9 | 9 | // Set container for Navbar |
| 10 | 10 | if (theme_get_setting('navbar_full_width')) { |
| 11 | 11 | $variables['navbar_width'] = 'container-fluid'; |
| 12 | - } |
|
| 13 | - else { |
|
| 12 | + } else { |
|
| 14 | 13 | $variables['navbar_width'] = 'container'; |
| 15 | 14 | } |
| 16 | 15 | |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | */ |
| 24 | 24 | function one_theme_suggestions_menu_alter(&$suggestions, array $variables) { |
| 25 | 25 | if (isset($variables['attributes']['region'])) { |
| 26 | - $suggestions[] = 'menu__' . $variables['attributes']['region']; |
|
| 27 | - $suggestions[] = 'menu__' . $variables['menu_name'] . '__' . $variables['attributes']['region']; |
|
| 26 | + $suggestions[] = 'menu__'.$variables['attributes']['region']; |
|
| 27 | + $suggestions[] = 'menu__'.$variables['menu_name'].'__'.$variables['attributes']['region']; |
|
| 28 | 28 | } |
| 29 | 29 | } |
@@ -13,6 +13,6 @@ |
||
| 13 | 13 | $view_mode = $element['#view_mode']; |
| 14 | 14 | |
| 15 | 15 | foreach ($original_suggestions as $suggestion) { |
| 16 | - $suggestions[] = $suggestion . '__' . $view_mode; |
|
| 16 | + $suggestions[] = $suggestion.'__'.$view_mode; |
|
| 17 | 17 | } |
| 18 | 18 | } |