From d4844967b3fccc882c695b5afdfa3f36ffb9f26a Mon Sep 17 00:00:00 2001 From: Alexander O'Neill <alexander@born-digital.com> Date: Wed, 3 May 2023 08:58:59 -0300 Subject: [PATCH] Fix PHPCS errors. --- .../src/Controller/MediaSourceController.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/islandora_text_extraction/src/Controller/MediaSourceController.php b/modules/islandora_text_extraction/src/Controller/MediaSourceController.php index 2909f68d..f15e42d5 100644 --- a/modules/islandora_text_extraction/src/Controller/MediaSourceController.php +++ b/modules/islandora_text_extraction/src/Controller/MediaSourceController.php @@ -108,9 +108,8 @@ class MediaSourceController extends ControllerBase { $this->getLogger('islandora')->warning("Field $destination_field is not defined in Media Type {$media->bundle()}"); } if ($media->hasField($destination_text_field)) { - // TODO: The request actually has a malformed parameter string, ?text_format=plain_text?connection_close=true. - // But that's a Tesseract issue. - if (substr($request->query->get('text_format'), 0, 10) == 'plain_text' ) { + // @todo The request actually has a malformed parameter string, ?text_format=plain_text?connection_close=true. + if (substr($request->query->get('text_format'), 0, 10) == 'plain_text') { $contents = nl2br($contents); } $media->{$destination_text_field}->setValue($contents);