Code Duplication    Length = 8-8 lines in 2 locations

lib/Service/GearmanWorkerService.php 1 location

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

lib/Service/OcrService.php 1 location

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