style: Pint 포맷팅 적용
This commit is contained in:
@@ -3,12 +3,12 @@
|
||||
namespace App\Jobs;
|
||||
|
||||
use App\Models\VideoGeneration;
|
||||
use App\Services\GoogleCloudStorageService;
|
||||
use App\Services\Video\BgmService;
|
||||
use App\Services\Video\GeminiScriptService;
|
||||
use App\Services\Video\TtsService;
|
||||
use App\Services\Video\VeoVideoService;
|
||||
use App\Services\Video\VideoAssemblyService;
|
||||
use App\Services\GoogleCloudStorageService;
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Foundation\Bus\Dispatchable;
|
||||
@@ -114,7 +114,7 @@ public function handle(
|
||||
$video->updateProgress(
|
||||
VideoGeneration::STATUS_GENERATING_CLIPS,
|
||||
20 + (int) (($sceneNum / count($scenes)) * 10),
|
||||
"영상 클립 생성 요청 중 ({$sceneNum}/" . count($scenes) . ')'
|
||||
"영상 클립 생성 요청 중 ({$sceneNum}/".count($scenes).')'
|
||||
);
|
||||
|
||||
$result = $veo->generateClip($prompt, $duration);
|
||||
@@ -137,7 +137,7 @@ public function handle(
|
||||
$video->updateProgress(
|
||||
VideoGeneration::STATUS_GENERATING_CLIPS,
|
||||
30 + (int) (($sceneNum / count($scenes)) * 40),
|
||||
"영상 클립 생성 대기 중 ({$sceneNum}/" . count($scenes) . ')'
|
||||
"영상 클립 생성 대기 중 ({$sceneNum}/".count($scenes).')'
|
||||
);
|
||||
|
||||
$result = $veo->waitAndSave(
|
||||
@@ -189,7 +189,7 @@ public function handle(
|
||||
|
||||
// 성공한 클립이 절반 미만이면 전체 실패
|
||||
if (count($clipPaths) < ceil(count($scenes) / 2)) {
|
||||
$video->markFailed('영상 클립 생성 실패 (성공: ' . count($clipPaths) . '/' . count($scenes) . ')');
|
||||
$video->markFailed('영상 클립 생성 실패 (성공: '.count($clipPaths).'/'.count($scenes).')');
|
||||
|
||||
return;
|
||||
}
|
||||
@@ -310,7 +310,7 @@ public function handle(
|
||||
// === 완료 ===
|
||||
$stepMsg = empty($skippedScenes)
|
||||
? '완료'
|
||||
: '완료 (장면 ' . implode(',', $skippedScenes) . ' 건너뜀)';
|
||||
: '완료 (장면 '.implode(',', $skippedScenes).' 건너뜀)';
|
||||
|
||||
$video->update([
|
||||
'status' => VideoGeneration::STATUS_COMPLETED,
|
||||
@@ -344,7 +344,7 @@ public function handle(
|
||||
public function failed(\Throwable $exception): void
|
||||
{
|
||||
$video = VideoGeneration::withoutGlobalScopes()->find($this->videoGenerationId);
|
||||
$video?->markFailed('Job 실패: ' . $exception->getMessage());
|
||||
$video?->markFailed('Job 실패: '.$exception->getMessage());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -356,6 +356,6 @@ private function makeSafePrompt(string $prompt): string
|
||||
$prompt = preg_replace('/\b(woman|man|girl|boy|person|people|her|his|she|he)\b/i', 'subject', $prompt);
|
||||
|
||||
// 안전 키워드 추가
|
||||
return 'Safe for all audiences. Professional stock footage style. ' . $prompt;
|
||||
return 'Safe for all audiences. Professional stock footage style. '.$prompt;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user