From cda9e08690b2ff8e69aa1eb9397780a6855f49b1 Mon Sep 17 00:00:00 2001 From: Alexander O'Neill <alexander@born-digital.com> Date: Wed, 3 May 2023 15:32:15 -0300 Subject: [PATCH] Respond to PHPCS errors. --- .../islandora_text_extraction.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/islandora_text_extraction/islandora_text_extraction.module b/modules/islandora_text_extraction/islandora_text_extraction.module index 9bff85f0..ca330dd4 100644 --- a/modules/islandora_text_extraction/islandora_text_extraction.module +++ b/modules/islandora_text_extraction/islandora_text_extraction.module @@ -40,8 +40,8 @@ function islandora_text_extraction_media_presave(MediaInterface $media) { $file = File::load($file_id); if ($file) { $data = file_get_contents($file->getFileUri()); - // Check if it's already markup like hOCR - if (substr($data, 0, 4) == '<xml') { + // Check if it's already markup like hOCR. + if (substr($data, 0, 5) == '<?xml') { return; } $data = nl2br($data);