@@ -48,8 +48,7 @@ discard block |
||
| 48 | 48 | ]; |
| 49 | 49 | } |
| 50 | 50 | unset($build[$field_name]); |
| 51 | - } |
|
| 52 | - else if ($field_name != 'field_hero_image') { |
|
| 51 | + } else if ($field_name != 'field_hero_image') { |
|
| 53 | 52 | $wrapper['#children'][$field_name] = $build[$field_name]; |
| 54 | 53 | unset($build[$field_name]); |
| 55 | 54 | } |
@@ -90,8 +89,7 @@ discard block |
||
| 90 | 89 | if ($r + $g + $b > 382) { |
| 91 | 90 | $wrapper['#children']['field_hero_link'][0]['#attributes']['class'][] = 'hero-link-light-bg'; |
| 92 | 91 | $style .= 'border-color:black;color:black;'; |
| 93 | - } |
|
| 94 | - else { |
|
| 92 | + } else { |
|
| 95 | 93 | $wrapper['#children']['field_hero_link'][0]['#attributes']['class'][] = 'hero-link-dark-bg'; |
| 96 | 94 | $style .= 'border-color:white;color:white;'; |
| 97 | 95 | } |
@@ -202,8 +200,7 @@ discard block |
||
| 202 | 200 | unset($form['flipper']['front']['settings']['view_mode']['#options'][$view_mode]); |
| 203 | 201 | } |
| 204 | 202 | } |
| 205 | - } |
|
| 206 | - else if ($form['plugin_id']['#value'] == 'media_embed') { |
|
| 203 | + } else if ($form['plugin_id']['#value'] == 'media_embed') { |
|
| 207 | 204 | if (empty(Element::getVisibleChildren($form['flipper']['front']['settings']['selection']['table'])) && !$form_state->isProcessingInput()) { |
| 208 | 205 | $form['#attached']['library'][] = 'df_tools_blocks/auto_open'; |
| 209 | 206 | $form['#attributes']['data-df-tools-blocks-auto-open'] = 'settings_selection_mids_entity_browser'; |
@@ -367,14 +364,12 @@ discard block |
||
| 367 | 364 | if (isset($block_info[$key])) { |
| 368 | 365 | if (isset($category_map[$category])) { |
| 369 | 366 | $block_info[$key]['category'] = t($category_map[$category]); |
| 370 | - } |
|
| 371 | - else if (is_string($block_info[$key]['category'])) { |
|
| 367 | + } else if (is_string($block_info[$key]['category'])) { |
|
| 372 | 368 | $block_info[$key]['category'] = t($block_info[$key]['category']); |
| 373 | 369 | } |
| 374 | 370 | if (isset($label_map[$label])) { |
| 375 | 371 | $block_info[$key]['label'] = $label_map[$label]; |
| 376 | - } |
|
| 377 | - else if (is_string($block_info[$key]['label'])) { |
|
| 372 | + } else if (is_string($block_info[$key]['label'])) { |
|
| 378 | 373 | $block_info[$key]['label'] = t($block_info[$key]['label']); |
| 379 | 374 | } |
| 380 | 375 | } |
@@ -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")) { |
@@ -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', |