Code Duplication    Length = 8-8 lines in 2 locations

lib/Service/GearmanWorkerService.php 1 location

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

lib/Service/OcrService.php 1 location

@@ 417-424 (lines=8) @@
414
	 * @throws Exception
415
	 * @throws NotFoundException
416
	 */
417
	private function handleException($e) {
418
		$this->logger->logException($e, ['app' => 'ocr', 'message' => 'Exception during ocr service function processing']);
419
		if ($e instanceof NotFoundException) {
420
			throw new NotFoundException($e->getMessage());
421
		} else {
422
			throw $e;
423
		}
424
	}
425
}