Skip to content

A self-hosted media server and file management system

chore: pint

aminnausinffe9a1ba0fd4
diff --git a/app/Jobs/VerifyFolders.php b/app/Jobs/VerifyFolders.php
index c1b6a1ca..34cb4f87 100644
--- a/app/Jobs/VerifyFolders.php
+++ b/app/Jobs/VerifyFolders.php
@@ -134,7 +134,7 @@ class VerifyFolders extends ManagedSubTask {
Series::upsert($transactions, 'id', ['folder_id', 'title', 'episodes', 'thumbnail_url', 'raw_thumbnail_url', 'total_size', 'primary_media_type', 'updated_at']);
- return $summary = 'Updated ' . count($transactions) . ' folders from id ' . ($transactions[0]['folder_id']) . ' to ' . ($transactions[count($transactions) - 1]['folder_id']);
+ return 'Updated ' . count($transactions) . ' folders from id ' . ($transactions[0]['folder_id']) . ' to ' . ($transactions[count($transactions) - 1]['folder_id']);
} catch (\Throwable $th) {
$ids = array_column($transactions, 'id');
diff --git a/app/Services/PreviewGeneratorService.php b/app/Services/PreviewGeneratorService.php
index 81dbc60e..75669d57 100644
--- a/app/Services/PreviewGeneratorService.php
+++ b/app/Services/PreviewGeneratorService.php
@@ -108,7 +108,7 @@ class PreviewGeneratorService {
'upload_date' => $this->formatDate($folderResource->series->created_at),
'content_string' => $contentString,
'rating' => $folderResource->series->rating,
- 'tags' => $folderResource->series->folder_tags ? array_map(fn($tag) => $tag->name, $folderResource->series->folder_tags) : null,
+ 'tags' => $folderResource->series->folder_tags ? array_map(fn ($tag) => $tag->name, $folderResource->series->folder_tags) : null,
'url' => $request->fullUrl(),
];
@@ -138,7 +138,7 @@ class PreviewGeneratorService {
'release_date' => $releaseDate,
'upload_date' => $this->formatDate($video->metadata->date_uploaded),
'mime_type' => $video->mime_type,
- 'tags' => $videoResource->video_tags ? array_map(fn($tag) => $tag->name, $videoResource->video_tags) : null,
+ 'tags' => $videoResource->video_tags ? array_map(fn ($tag) => $tag->name, $videoResource->video_tags) : null,
'studio' => ucfirst($folderResource?->series?->studio ?? $category->name),
'url' => $request->fullUrl(),
];
@@ -369,8 +369,6 @@ class PreviewGeneratorService {
}
}
-class ChromiumException extends Exception {
-}
+class ChromiumException extends Exception {}
-class GenerateImageException extends Exception {
-}
+class GenerateImageException extends Exception {}
diff --git a/database/migrations/2026_01_27_231212_change_date_action_to_action_at_on_series.php b/database/migrations/2026_01_27_231212_change_date_action_to_action_at_on_series.php
index 445f194c..c52a55b0 100644
--- a/database/migrations/2026_01_27_231212_change_date_action_to_action_at_on_series.php
+++ b/database/migrations/2026_01_27_231212_change_date_action_to_action_at_on_series.php
@@ -11,18 +11,18 @@ return new class extends Migration {
*/
public function up(): void {
Schema::table('series', function (Blueprint $table) {
- $table->date("started_at")->nullable();
- $table->date("ended_at")->nullable();
+ $table->date('started_at')->nullable();
+ $table->date('ended_at')->nullable();
});
- DB::statement("
+ DB::statement('
UPDATE series
SET started_at = date_start,
ended_at = date_end;
- ");
+ ');
Schema::table('series', function (Blueprint $table) {
- $table->dropColumn(["date_start", "date_end"]);
+ $table->dropColumn(['date_start', 'date_end']);
});
}
@@ -31,18 +31,18 @@ return new class extends Migration {
*/
public function down(): void {
Schema::table('series', function (Blueprint $table) {
- $table->date("date_start")->nullable();
- $table->date("date_end")->nullable();
+ $table->date('date_start')->nullable();
+ $table->date('date_end')->nullable();
});
- DB::statement("
+ DB::statement('
UPDATE series
SET date_start = started_at,
date_end = ended_at
- ");
+ ');
Schema::table('series', function (Blueprint $table) {
- $table->dropColumn(["started_at", "ended_at"]);
+ $table->dropColumn(['started_at', 'ended_at']);
});
}
};