@@ -113,8 +113,7 @@ discard block |
||
| 113 | 113 | } |
| 114 | 114 | |
| 115 | 115 | $info['projects'][$name] = $this->buildProject($package); |
| 116 | - } |
|
| 117 | - elseif ($this->isLightning($package)) { |
|
| 116 | + } elseif ($this->isLightning($package)) { |
|
| 118 | 117 | $info['projects'][$name] = $this->buildProject($package); |
| 119 | 118 | |
| 120 | 119 | // The Lightning project uses semantic versioning. |
@@ -228,12 +227,10 @@ discard block |
||
| 228 | 227 | $info['download']['branch'] = $package['version']; |
| 229 | 228 | } |
| 230 | 229 | $info['download']['revision'] = $package['source']['reference']; |
| 231 | - } |
|
| 232 | - else { |
|
| 230 | + } else { |
|
| 233 | 231 | if ($package['type'] == 'drupal-core') { |
| 234 | 232 | $version = $package['version']; |
| 235 | - } |
|
| 236 | - else { |
|
| 233 | + } else { |
|
| 237 | 234 | // Make tag versioning Drupal-friendly. 8.1.0-alpha1 => 8.x-1.0-alpha1. |
| 238 | 235 | $version = sprintf( |
| 239 | 236 | '%d.x-%s', |
@@ -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 | |
@@ -29,8 +29,7 @@ |
||
| 29 | 29 | function df_tools_media_views_insert(ViewEntityInterface $view) { |
| 30 | 30 | if (\Drupal::isConfigSyncing()) { |
| 31 | 31 | return; |
| 32 | - } |
|
| 33 | - elseif (drupal_installation_attempted() && $view->id() == 'media') { |
|
| 32 | + } elseif (drupal_installation_attempted() && $view->id() == 'media') { |
|
| 34 | 33 | $display1 = &$view->getDisplay('entity_browser_1'); |
| 35 | 34 | $display2 = &$view->getDisplay('entity_browser_2'); |
| 36 | 35 | $display1['display_options']['filters']['field_tags_target_id'] = $display2['display_options']['filters']['field_tags_target_id'] = [ |
@@ -68,8 +68,7 @@ discard block |
||
| 68 | 68 | if (isset($options['langcode'])) { |
| 69 | 69 | $url_options['language'] = \Drupal::languageManager()->getLanguage($options['langcode']); |
| 70 | 70 | $langcode = $options['langcode']; |
| 71 | - } |
|
| 72 | - else { |
|
| 71 | + } else { |
|
| 73 | 72 | $langcode = NULL; |
| 74 | 73 | } |
| 75 | 74 | |
@@ -93,8 +92,7 @@ discard block |
||
| 93 | 92 | $replacements[$original] = Url::fromRoute('entity.node.latest_version', [ |
| 94 | 93 | 'node' => $node->id(), |
| 95 | 94 | ], $url_options)->toString(); |
| 96 | - } |
|
| 97 | - else { |
|
| 95 | + } else { |
|
| 98 | 96 | $replacements[$original] = $latest->toUrl('canonical', $url_options)->toString(); |
| 99 | 97 | } |
| 100 | 98 | break; |