@@ -180,8 +180,7 @@ discard block |
||
180 | 180 | // their styles in code. |
181 | 181 | elseif ($this->fieldDefinition->getType() == 'image' && $image_style = ImageStyle::load($image_style_setting)) { |
182 | 182 | $preview_image_style = $this->t('Preview image style: @style', ['@style' => $image_style->label()]); |
183 | - } |
|
184 | - else { |
|
183 | + } else { |
|
185 | 184 | $preview_image_style = $this->t('No preview image'); |
186 | 185 | } |
187 | 186 | array_unshift($summary, $preview_image_style); |
@@ -248,8 +247,7 @@ discard block |
||
248 | 247 | // will only throw an exception. |
249 | 248 | if (!$entity->getEntityType()->getFormClass('edit')) { |
250 | 249 | $edit_button_access = FALSE; |
251 | - } |
|
252 | - elseif ($has_file_entity) { |
|
250 | + } elseif ($has_file_entity) { |
|
253 | 251 | $edit_button_access = $can_edit && $entity->access('update', $this->currentUser); |
254 | 252 | } |
255 | 253 | |
@@ -268,8 +266,7 @@ discard block |
||
268 | 266 | if ($field_type == 'file') { |
269 | 267 | $description = $item->description; |
270 | 268 | $display_field = $item->display; |
271 | - } |
|
272 | - elseif ($field_type == 'image') { |
|
269 | + } elseif ($field_type == 'image') { |
|
273 | 270 | $alt = $item->alt; |
274 | 271 | $title = $item->title; |
275 | 272 | $width = $item->width; |
@@ -474,8 +471,7 @@ discard block |
||
474 | 471 | if (!empty($settings['max_resolution']) || !empty($settings['min_resolution'])) { |
475 | 472 | $validators['entity_browser_file_validate_image_resolution'] = [$settings['max_resolution'], $settings['min_resolution']]; |
476 | 473 | } |
477 | - } |
|
478 | - elseif (!empty($settings['file_extensions'])) { |
|
474 | + } elseif (!empty($settings['file_extensions'])) { |
|
479 | 475 | $validators['file_validate_extensions'] = [$settings['file_extensions']]; |
480 | 476 | } |
481 | 477 |