|
@@ 235-241 (lines=7) @@
|
| 232 |
|
if ($pos !== false) { |
| 233 |
|
$filePath = substr_replace($filePath, '', $pos, strlen('/')); // '/' => '' || '/Test/' => 'Test' |
| 234 |
|
} |
| 235 |
|
if ($fileInfo->getMimetype() === OcrConstants::MIME_TYPE_PDF) { |
| 236 |
|
// PDFs: |
| 237 |
|
return $this->buildNotExistingFilename($filePath, $fileName . '_OCR.pdf'); |
| 238 |
|
} else { |
| 239 |
|
// IMAGES: |
| 240 |
|
return $this->buildNotExistingFilename($filePath, $fileName . '_OCR.txt'); |
| 241 |
|
} |
| 242 |
|
} |
| 243 |
|
|
| 244 |
|
/** |
|
@@ 276-282 (lines=7) @@
|
| 273 |
|
if ($pos !== false) { |
| 274 |
|
$filePath = substr_replace($filePath, '', $pos, strlen('/')); // '/Test' => '// 'Test' || '/' => '' |
| 275 |
|
} |
| 276 |
|
if ($fileInfo->getMimetype() === OcrConstants::MIME_TYPE_PDF) { |
| 277 |
|
// PDFs: |
| 278 |
|
return $this->buildNotExistingFilename($filePath, $fileName . '_OCR.pdf'); |
| 279 |
|
} else { |
| 280 |
|
// IMAGES: |
| 281 |
|
return $this->buildNotExistingFilename($filePath, $fileName . '_OCR.txt'); |
| 282 |
|
} |
| 283 |
|
} |
| 284 |
|
|
| 285 |
|
/** |