|
@@ 186-192 (lines=7) @@
|
| 183 |
|
// '/' => '' || '/Test/' => 'Test' |
| 184 |
|
$filePath = substr_replace($filePath, '', $pos, strlen('/')); |
| 185 |
|
} |
| 186 |
|
if ($fileInfo->getMimetype() === OcrConstants::MIME_TYPE_PDF) { |
| 187 |
|
// PDFs: |
| 188 |
|
return $this->fileUtil->buildNotExistingFilename($filePath, $fileName . '_OCR.pdf'); |
| 189 |
|
} else { |
| 190 |
|
// IMAGES: |
| 191 |
|
return $this->fileUtil->buildNotExistingFilename($filePath, $fileName . '_OCR.txt'); |
| 192 |
|
} |
| 193 |
|
} |
| 194 |
|
|
| 195 |
|
/** |
|
@@ 220-226 (lines=7) @@
|
| 217 |
|
// '/Test' => '// 'Test' || '/' => '' |
| 218 |
|
$filePath = substr_replace($filePath, '', $pos, strlen('/')); |
| 219 |
|
} |
| 220 |
|
if ($fileInfo->getMimetype() === OcrConstants::MIME_TYPE_PDF) { |
| 221 |
|
// PDFs: |
| 222 |
|
return $this->fileUtil->buildNotExistingFilename($filePath, $fileName . '_OCR.pdf'); |
| 223 |
|
} else { |
| 224 |
|
// IMAGES: |
| 225 |
|
return $this->fileUtil->buildNotExistingFilename($filePath, $fileName . '_OCR.txt'); |
| 226 |
|
} |
| 227 |
|
} |
| 228 |
|
|
| 229 |
|
/** |