Code Duplication    Length = 8-8 lines in 2 locations

lib/Service/QueueService.php 1 location

@@ 146-153 (lines=8) @@
143
	 * @throws Exception
144
	 * @throws NotFoundException
145
	 */
146
	private function handleException($e) {
147
		$this->logger->logException($e, ['app' => 'ocr', 'message' => 'Exception during message queue processing']);
148
		if ($e instanceof NotFoundException) {
149
			throw new NotFoundException($e->getMessage());
150
		} else {
151
			throw $e;
152
		}
153
	}
154
155
}

lib/Service/OcrService.php 1 location

@@ 530-537 (lines=8) @@
527
	 * @throws Exception
528
	 * @throws NotFoundException
529
	 */
530
	private function handleException($e) {
531
		$this->logger->logException($e, ['app' => 'ocr', 'message' => 'Exception during ocr service function processing']);
532
		if ($e instanceof NotFoundException) {
533
			throw new NotFoundException($e->getMessage());
534
		} else {
535
			throw $e;
536
		}
537
	}
538
}
539