Skip to content

Commit

Permalink
Work on #421 - coding standards.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjordan committed Mar 20, 2018
1 parent 063e6e7 commit 4cfe6b5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/inputvalidators/CsvBooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,11 @@ private function checkPageExtensions($files)
$ext = $pathinfo['extension'];
if ($this->log_missing_ocr_files) {
$ocr_extension = ltrim($this->ocr_extension, '.');
$allowed_extensions = array_merge($this->fileGetter->allowed_file_extensions_for_OBJ, array($ocr_extension));
}
else {
$allowed_extensions = array_merge(
$this->fileGetter->allowed_file_extensions_for_OBJ,
array($ocr_extension)
);
} else {
$allowed_extensions = $this->fileGetter->allowed_file_extensions_for_OBJ;
}
if (!in_array($ext, $allowed_extensions)) {
Expand Down

0 comments on commit 4cfe6b5

Please sign in to comment.