@@ -66,7 +66,7 @@ discard block |
||
| 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 |
||
| 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, |
@@ -72,8 +72,8 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | |