@@ -40,8 +40,7 @@ |
||
| 40 | 40 | $widget_form['#title'] = ''; |
| 41 | 41 | $widget_form['entity_id']['#title'] = t('Existing slide'); |
| 42 | 42 | $widget_form['actions']['ief_reference_save']['#value'] = t('Add'); |
| 43 | - } |
|
| 44 | - else { |
|
| 43 | + } else { |
|
| 45 | 44 | $widget_form['inline_entity_form']['#ief_labels']['singular'] = 'slide'; |
| 46 | 45 | } |
| 47 | 46 | } |
@@ -264,8 +264,7 @@ |
||
| 264 | 264 | else { |
| 265 | 265 | $chunk = _color_shift($palette[$base], $default_color_mapping[$base], $chunk, $info['blend_target']); |
| 266 | 266 | } |
| 267 | - } |
|
| 268 | - else { |
|
| 267 | + } else { |
|
| 269 | 268 | // Determine the most suitable base color for the next color. |
| 270 | 269 | |
| 271 | 270 | // 'a' declarations. Use link. |
@@ -40,14 +40,12 @@ discard block |
||
| 40 | 40 | if (is_array($value)) { |
| 41 | 41 | if ($this->isAssociative($value)) { |
| 42 | 42 | $output = array_merge($output, $this->doEncode($value, $keys)); |
| 43 | - } |
|
| 44 | - else { |
|
| 43 | + } else { |
|
| 45 | 44 | foreach ($value as $j) { |
| 46 | 45 | $output[] = $this->keysToString($keys) . '[] = ' . $j; |
| 47 | 46 | } |
| 48 | 47 | } |
| 49 | - } |
|
| 50 | - else { |
|
| 48 | + } else { |
|
| 51 | 49 | $output[] = $this->keysToString($keys) . ' = ' . $value; |
| 52 | 50 | } |
| 53 | 51 | |
@@ -70,8 +68,7 @@ discard block |
||
| 70 | 68 | $head = array_shift($keys); |
| 71 | 69 | if ($keys) { |
| 72 | 70 | return $head . '[' . implode('][', $keys) . ']'; |
| 73 | - } |
|
| 74 | - else { |
|
| 71 | + } else { |
|
| 75 | 72 | return $head; |
| 76 | 73 | } |
| 77 | 74 | } |
@@ -206,8 +206,7 @@ discard block |
||
| 206 | 206 | if ($media && $media->access('view')) { |
| 207 | 207 | if (isset(static::$recursiveRenderDepth[$mid])) { |
| 208 | 208 | static::$recursiveRenderDepth[$mid]++; |
| 209 | - } |
|
| 210 | - else { |
|
| 209 | + } else { |
|
| 211 | 210 | static::$recursiveRenderDepth[$mid] = 1; |
| 212 | 211 | } |
| 213 | 212 | |
@@ -236,8 +235,7 @@ discard block |
||
| 236 | 235 | $mids = \Drupal::entityQuery('media') |
| 237 | 236 | ->condition('uuid', $this->configuration['uuids'], 'IN') |
| 238 | 237 | ->execute(); |
| 239 | - } |
|
| 240 | - else { |
|
| 238 | + } else { |
|
| 241 | 239 | $mids = []; |
| 242 | 240 | } |
| 243 | 241 | |
@@ -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")) { |
@@ -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 | |
@@ -92,8 +92,7 @@ |
||
| 92 | 92 | |
| 93 | 93 | if (!empty($css_classes)) { |
| 94 | 94 | $form_state->setValue(['attributes', 'class'], $css_classes); |
| 95 | - } |
|
| 96 | - else { |
|
| 95 | + } else { |
|
| 97 | 96 | $form_state->unsetValue(['attributes', 'class']); |
| 98 | 97 | } |
| 99 | 98 | } |
@@ -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 | |