diff --git a/src/Jobs/GenerateHLSJob.php b/src/Jobs/GenerateHLSJob.php index beca9b9..beda61d 100644 --- a/src/Jobs/GenerateHLSJob.php +++ b/src/Jobs/GenerateHLSJob.php @@ -40,7 +40,7 @@ public function handle(): void $export = $this->model->ffmpeg()->exportForHLS(); foreach (Arr::wrap(alicia_config('hls.bitrate')) as $bitrate) { - $export->addFormat(( new X264() )->setKiloBitrate($bitrate)); + $export->addFormat((new X264())->setKiloBitrate($bitrate)); } $export->setSegmentLength(alicia_config('hls.setSegmentLength')) // optional diff --git a/src/Services/Actions/BatchUpload.php b/src/Services/Actions/BatchUpload.php index 13eaf08..80bf83b 100644 --- a/src/Services/Actions/BatchUpload.php +++ b/src/Services/Actions/BatchUpload.php @@ -28,9 +28,9 @@ public function run(): Resource|Collection $data = collect(); foreach ($this->files as $file) { if ($file instanceof UploadedFile) { - $data->push(( new Upload($file) )->run()); + $data->push((new Upload($file))->run()); } elseif (is_string($file)) { - $data->push(( new External($file) )->run()); + $data->push((new External($file))->run()); } } diff --git a/src/Services/Actions/Delete.php b/src/Services/Actions/Delete.php index ede51f5..9c1ccc7 100644 --- a/src/Services/Actions/Delete.php +++ b/src/Services/Actions/Delete.php @@ -31,7 +31,7 @@ public function run(): Resource try { if ($this->model->children()->exists()) { foreach ($this->model->children()->select('id', 'directory', 'external')->get() as $child) { - ( new self($child) )->run(); + (new self($child))->run(); } } $this->model->delete(); diff --git a/tests/Core/migrations/2023_05_02_172539_create_posts_table.php b/tests/Core/migrations/2023_05_02_172539_create_posts_table.php index 7b081ac..1140735 100644 --- a/tests/Core/migrations/2023_05_02_172539_create_posts_table.php +++ b/tests/Core/migrations/2023_05_02_172539_create_posts_table.php @@ -13,7 +13,7 @@ */ public function up() { - Schema::create(( new Post() )->getTable(), function (Blueprint $table) { + Schema::create((new Post())->getTable(), function (Blueprint $table) { $table->id(); $table->string('title'); $table->text('content'); @@ -28,6 +28,6 @@ public function up() */ public function down() { - Schema::dropIfExists(( new Post() )->getTable()); + Schema::dropIfExists((new Post())->getTable()); } };