Code Duplication    Length = 8-8 lines in 2 locations

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
}

lib/Service/OcrService.php 1 location

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