Skip to content

Commit

Permalink
Islandora IIIF: Fix PHPCS warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
alxp committed Jun 29, 2024
1 parent 923419a commit c91cd58
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/islandora_iiif/src/IiifInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public function getImageDimensions(FileInterface $file) {
/**
* The IIIF base URL for an image.
*
* Visiting this URL will resolve to the full image resized to the maximum dimensions given.
* Visiting this URL resolves to the image resized to the maximum dimensions.
*
* @param \Drupal\file\FileInterface $image
* The image entity.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
use Symfony\Component\DependencyInjection\ContainerInterface;

/**
* Provides an action that can retrieve a large image file's dimensions from an IIIF server and save them to a media's fields.
* Retrieve a large image file's dimensions and save them to a media's fields.
*
* @Action(
* id = "media_attributes_from_iiif_action",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
$field_options[$field_name] = $field->adminLabel();
}
else {
// Put it in the list of fields that could contain the custom width or height value.
// Put it in the list of fields that may contain the custom value.
$dimensions_field_options[$field_name] = $field->adminLabel();
}
}
Expand All @@ -605,7 +605,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) {
You will need to add a field to this View'), 'error');
}

$dimensions_field_options = array_merge(['' => ' - ' . $this->t('None') . ' -- '], $dimensions_field_options);
$dimensions_field_options = array_merge(['' => ' - None -- '], $dimensions_field_options);

$form['iiif_tile_field'] = [
'#title' => $this->t('Tile source field(s)'),
Expand Down

0 comments on commit c91cd58

Please sign in to comment.