Completed
Pull Request — master (#11)
by Janis
03:37
created
lib/Service/OcrService.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -344,13 +344,13 @@
 block discarded – undo
344 344
 	 * Checks a Mimetype for a specific given FileInfo.
345 345
 	 * @param Files\FileInfo $fileInfo
346 346
 	 */
347
-	private function checkMimeType(FileInfo $fileInfo){
348
-		try{
347
+	private function checkMimeType(FileInfo $fileInfo) {
348
+		try {
349 349
 			if (!$fileInfo || !in_array($fileInfo->getMimetype(), $this::ALLOWED_MIMETYPES)) {
350 350
 				$this->logger->debug('Getting FileInfo did not work or not included in the ALLOWED_MIMETYPES array.', ['app' => 'ocr']);
351 351
 				throw new NotFoundException($this->l10n->t('Wrong parameters or wrong mimetype.'));
352 352
 			}
353
-		}catch (Exception $e){
353
+		} catch (Exception $e) {
354 354
 			$this->handleException($e);
355 355
 		}
356 356
 	}
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -350,7 +350,7 @@
 block discarded – undo
350 350
 				$this->logger->debug('Getting FileInfo did not work or not included in the ALLOWED_MIMETYPES array.', ['app' => 'ocr']);
351 351
 				throw new NotFoundException($this->l10n->t('Wrong parameters or wrong mimetype.'));
352 352
 			}
353
-		}catch (Exception $e){
353
+		} catch (Exception $e){
354 354
 			$this->handleException($e);
355 355
 		}
356 356
 	}
Please login to merge, or discard this patch.