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

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