Code Duplication    Length = 8-8 lines in 2 locations

lib/Service/OcrService.php 1 location

@@ 527-534 (lines=8) @@
524
	 * @throws Exception
525
	 * @throws NotFoundException
526
	 */
527
	private function handleException($e) {
528
		$this->logger->logException($e, ['app' => 'ocr', 'message' => 'Exception during ocr service function processing']);
529
		if ($e instanceof NotFoundException) {
530
			throw new NotFoundException($e->getMessage());
531
		} else {
532
			throw $e;
533
		}
534
	}
535
}
536

lib/Service/QueueService.php 1 location

@@ 146-153 (lines=8) @@
143
	 * @throws Exception
144
	 * @throws NotFoundException
145
	 */
146
	private function handleException($e) {
147
		$this->logger->logException($e, ['app' => 'ocr', 'message' => 'Exception during message queue processing']);
148
		if ($e instanceof NotFoundException) {
149
			throw new NotFoundException($e->getMessage());
150
		} else {
151
			throw $e;
152
		}
153
	}
154
155
}