|
@@ 227-233 (lines=7) @@
|
| 224 |
|
// '/' => '' || '/Test/' => 'Test' |
| 225 |
|
$filePath = substr_replace($filePath, '', $pos, strlen('/')); |
| 226 |
|
} |
| 227 |
|
if ($fileInfo->getMimetype() === OcrConstants::MIME_TYPE_PDF) { |
| 228 |
|
// PDFs: |
| 229 |
|
return $this->buildNotExistingFilename($filePath, $fileName . '_OCR.pdf'); |
| 230 |
|
} else { |
| 231 |
|
// IMAGES: |
| 232 |
|
return $this->buildNotExistingFilename($filePath, $fileName . '_OCR.txt'); |
| 233 |
|
} |
| 234 |
|
} |
| 235 |
|
|
| 236 |
|
/** |
|
@@ 266-272 (lines=7) @@
|
| 263 |
|
// '/Test' => '// 'Test' || '/' => '' |
| 264 |
|
$filePath = substr_replace($filePath, '', $pos, strlen('/')); |
| 265 |
|
} |
| 266 |
|
if ($fileInfo->getMimetype() === OcrConstants::MIME_TYPE_PDF) { |
| 267 |
|
// PDFs: |
| 268 |
|
return $this->buildNotExistingFilename($filePath, $fileName . '_OCR.pdf'); |
| 269 |
|
} else { |
| 270 |
|
// IMAGES: |
| 271 |
|
return $this->buildNotExistingFilename($filePath, $fileName . '_OCR.txt'); |
| 272 |
|
} |
| 273 |
|
} |
| 274 |
|
|
| 275 |
|
/** |