From c91cd588191df0b39a3f58379fe1e038c4a80984 Mon Sep 17 00:00:00 2001 From: Alexander O'Neill Date: Fri, 28 Jun 2024 22:02:24 -0300 Subject: [PATCH] Islandora IIIF: Fix PHPCS warnings. --- modules/islandora_iiif/src/IiifInfo.php | 2 +- .../src/Plugin/Action/MediaAttributesFromIiif.php | 2 +- .../islandora_iiif/src/Plugin/views/style/IIIFManifest.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/islandora_iiif/src/IiifInfo.php b/modules/islandora_iiif/src/IiifInfo.php index 2a6c28189..f2b1138ad 100644 --- a/modules/islandora_iiif/src/IiifInfo.php +++ b/modules/islandora_iiif/src/IiifInfo.php @@ -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. diff --git a/modules/islandora_iiif/src/Plugin/Action/MediaAttributesFromIiif.php b/modules/islandora_iiif/src/Plugin/Action/MediaAttributesFromIiif.php index cdb67b1bd..cfe41f17c 100644 --- a/modules/islandora_iiif/src/Plugin/Action/MediaAttributesFromIiif.php +++ b/modules/islandora_iiif/src/Plugin/Action/MediaAttributesFromIiif.php @@ -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", diff --git a/modules/islandora_iiif/src/Plugin/views/style/IIIFManifest.php b/modules/islandora_iiif/src/Plugin/views/style/IIIFManifest.php index 108d211f4..2f84e2fbb 100644 --- a/modules/islandora_iiif/src/Plugin/views/style/IIIFManifest.php +++ b/modules/islandora_iiif/src/Plugin/views/style/IIIFManifest.php @@ -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(); } } @@ -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)'),