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

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