Skip to content

A self-hosted media server and file management system

chore: remove redundant comment

aminnausin15a57f996030
diff --git a/app/Jobs/Utility/Subtitles/ScanSubtitles.php b/app/Jobs/Utility/Subtitles/ScanSubtitles.php
index 6795e7ab..b6de50c2 100644
--- a/app/Jobs/Utility/Subtitles/ScanSubtitles.php
+++ b/app/Jobs/Utility/Subtitles/ScanSubtitles.php
@@ -74,7 +74,7 @@ class ScanSubtitles extends ManagedSubTask {
$scannedUuids = [];
$metadataMap = Metadata::with('video')
- ->whereIn('uuid', array_map(fn ($t) => $t->uuid, $this->targets))
+ ->whereIn('uuid', array_map(fn($t) => $t->uuid, $this->targets))
->get()
->keyBy('uuid');
@@ -104,7 +104,7 @@ class ScanSubtitles extends ManagedSubTask {
continue;
}
- $manager->purgeSubtitles($metadata, externalOnly: ! $fileUpdated); // only purge external subtitle files if the file was not updated. Getting to this point
+ $manager->purgeSubtitles($metadata, externalOnly: ! $fileUpdated); // only purge external subtitle files if the file was not updated
// absolute file path in storage
$filePath = VerifyFiles::getAbsoluteMediaPath($media);
@@ -121,7 +121,7 @@ class ScanSubtitles extends ManagedSubTask {
if (! empty($externalSubtitles)) {
$relevantExternal = array_filter(
$externalSubtitles,
- fn ($sub) => strtolower($sub['media_filename']) === strtolower($fileName)
+ fn($sub) => strtolower($sub['media_filename']) === strtolower($fileName)
);
$subtitleTransactions = array_merge($subtitleTransactions, $subtitleScanner->buildSubtitleTransactions($uuid, $relevantExternal));