Passed
Push — master ( f5c4f5...fd473f )
by Joas
18:20 queued 13s
created
lib/private/SpeechToText/TranscriptionJob.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 			$userFolder = $this->rootFolder->getUserFolder($owner);
67 67
 			$file = current($userFolder->getById($fileId));
68 68
 			if (!($file instanceof File)) {
69
-				$this->logger->warning('Transcription of file ' . $fileId . ' failed. The file could not be found');
69
+				$this->logger->warning('Transcription of file '.$fileId.' failed. The file could not be found');
70 70
 				$this->eventDispatcher->dispatchTyped(
71 71
 					new TranscriptionFailedEvent(
72 72
 						$fileId,
@@ -88,8 +88,8 @@  discard block
 block discarded – undo
88 88
 					$appId,
89 89
 				)
90 90
 			);
91
-		} catch (PreConditionNotMetException|\RuntimeException|\InvalidArgumentException|NotFoundException|NotPermittedException|NoUserException $e) {
92
-			$this->logger->warning('Transcription of file ' . $fileId . ' failed', ['exception' => $e]);
91
+		} catch (PreConditionNotMetException | \RuntimeException | \InvalidArgumentException | NotFoundException | NotPermittedException | NoUserException $e) {
92
+			$this->logger->warning('Transcription of file '.$fileId.' failed', ['exception' => $e]);
93 93
 			$this->eventDispatcher->dispatchTyped(
94 94
 				new TranscriptionFailedEvent(
95 95
 					$fileId,
Please login to merge, or discard this patch.
lib/private/SpeechToText/SpeechToTextManager.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -72,8 +72,8 @@  discard block
 block discarded – undo
72 72
 			$class = $providerServiceRegistration->getService();
73 73
 			try {
74 74
 				$this->providers[$class] = $this->serverContainer->get($class);
75
-			} catch (NotFoundExceptionInterface|ContainerExceptionInterface|Throwable $e) {
76
-				$this->logger->error('Failed to load SpeechToText provider ' . $class, [
75
+			} catch (NotFoundExceptionInterface | ContainerExceptionInterface | Throwable $e) {
76
+				$this->logger->error('Failed to load SpeechToText provider '.$class, [
77 77
 					'exception' => $e,
78 78
 				]);
79 79
 			}
@@ -101,8 +101,8 @@  discard block
 block discarded – undo
101 101
 				'userId' => $userId,
102 102
 				'appId' => $appId,
103 103
 			]);
104
-		} catch (NotFoundException|InvalidPathException $e) {
105
-			throw new InvalidArgumentException('Invalid file provided for file transcription: ' . $e->getMessage());
104
+		} catch (NotFoundException | InvalidPathException $e) {
105
+			throw new InvalidArgumentException('Invalid file provided for file transcription: '.$e->getMessage());
106 106
 		}
107 107
 	}
108 108
 
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 			try {
116 116
 				return $provider->transcribeFile($file);
117 117
 			} catch (\Throwable $e) {
118
-				$this->logger->info('SpeechToText transcription using provider ' . $provider->getName() . ' failed', ['exception' => $e]);
118
+				$this->logger->info('SpeechToText transcription using provider '.$provider->getName().' failed', ['exception' => $e]);
119 119
 			}
120 120
 		}
121 121
 
Please login to merge, or discard this patch.