Browse Source

Respond to PHPCS errors.

pull/942/head
Alexander O'Neill 2 years ago
parent
commit
cda9e08690
  1. 4
      modules/islandora_text_extraction/islandora_text_extraction.module

4
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);

Loading…
Cancel
Save