Code Duplication    Length = 8-8 lines in 2 locations

lib/Service/OcrService.php 1 location

@@ 378-385 (lines=8) @@
375
	 * @throws Exception
376
	 * @throws NotFoundException
377
	 */
378
	private function handleException($e) {
379
		$this->logger->logException($e, ['app' => 'ocr', 'message' => 'Exception during ocr service function processing']);
380
		if ($e instanceof NotFoundException) {
381
			throw new NotFoundException($e->getMessage());
382
		} else {
383
			throw $e;
384
		}
385
	}
386
}

lib/Service/QueueService.php 1 location

@@ 75-82 (lines=8) @@
72
	 * @throws Exception
73
	 * @throws NotFoundException
74
	 */
75
	private function handleException($e) {
76
		$this->logger->logException($e, ['app' => 'ocr', 'message' => 'Exception during message queue processing']);
77
		if ($e instanceof NotFoundException) {
78
			throw new NotFoundException($e->getMessage());
79
		} else {
80
			throw $e;
81
		}
82
	}
83
84
}