@@ -176,8 +176,7 @@ discard block |
||
| 176 | 176 | // their styles in code. |
| 177 | 177 | elseif ($this->fieldDefinition->getType() == 'image' && $image_style = ImageStyle::load($image_style_setting)) { |
| 178 | 178 | $preview_image_style = $this->t('Preview image style: @style', ['@style' => $image_style->label()]); |
| 179 | - } |
|
| 180 | - else { |
|
| 179 | + } else { |
|
| 181 | 180 | $preview_image_style = $this->t('No preview image'); |
| 182 | 181 | } |
| 183 | 182 | array_unshift($summary, $preview_image_style); |
@@ -261,8 +260,7 @@ discard block |
||
| 261 | 260 | if ($field_type == 'file') { |
| 262 | 261 | $description = $item->description; |
| 263 | 262 | $display_field = $item->display; |
| 264 | - } |
|
| 265 | - elseif ($field_type == 'image') { |
|
| 263 | + } elseif ($field_type == 'image') { |
|
| 266 | 264 | $alt = $item->alt; |
| 267 | 265 | $title = $item->title; |
| 268 | 266 | $width = $item->width; |
@@ -467,8 +465,7 @@ discard block |
||
| 467 | 465 | if ($settings['max_resolution'] || $settings['min_resolution']) { |
| 468 | 466 | $validators['entity_browser_file_validate_image_resolution'] = [$settings['max_resolution'], $settings['min_resolution']]; |
| 469 | 467 | } |
| 470 | - } |
|
| 471 | - elseif (!empty($settings['file_extensions'])) { |
|
| 468 | + } elseif (!empty($settings['file_extensions'])) { |
|
| 472 | 469 | $validators['file_validate_extensions'] = [$settings['file_extensions']]; |
| 473 | 470 | } |
| 474 | 471 | |