Skip to content

A self-hosted media server and file management system

chore: pint

aminnausin61411e928be3
diff --git a/app/Services/Subtitles/SubtitleExtractor.php b/app/Services/Subtitles/SubtitleExtractor.php
index 3dec70ed..cae6b051 100644
--- a/app/Services/Subtitles/SubtitleExtractor.php
+++ b/app/Services/Subtitles/SubtitleExtractor.php
@@ -73,7 +73,7 @@ class SubtitleExtractor {
'output_format' => $ext,
'media_path' => $mediaPath,
'output_path' => $outputPath,
- 'timings_ms' => array_map(fn($t) => round($t * 1000, 2), $timings),
+ 'timings_ms' => array_map(fn ($t) => round($t * 1000, 2), $timings),
]);
return $outputPath;
@@ -86,7 +86,7 @@ class SubtitleExtractor {
'command' => $e->getProcess()->getCommandLine(),
'exit_code' => $e->getProcess()->getExitCode(),
'error' => $e->getProcess()->getErrorOutput(),
- 'timings_ms' => array_map(fn($t) => round($t * 1000, 2), $timings),
+ 'timings_ms' => array_map(fn ($t) => round($t * 1000, 2), $timings),
]);
throw $e;
} catch (\Throwable $th) {
@@ -96,7 +96,7 @@ class SubtitleExtractor {
'track_id' => $subtitle->track_id,
'metadata_uuid' => $subtitle->metadata_uuid,
'error' => $th->getMessage(),
- 'timings_ms' => array_map(fn($t) => round($t * 1000, 2), $timings),
+ 'timings_ms' => array_map(fn ($t) => round($t * 1000, 2), $timings),
]);
throw $th;
}