Code Duplication    Length = 8-8 lines in 2 locations

lib/Service/QueueService.php 1 location

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

lib/Service/OcrService.php 1 location

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