Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Sep 20, 2024
1 parent aca858c commit ac312f1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Jobs/GenerateHLSJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/Services/Actions/BatchUpload.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -28,6 +28,6 @@ public function up()
*/
public function down()
{
Schema::dropIfExists(( new Post() )->getTable());
Schema::dropIfExists((new Post())->getTable());
}
};
4 changes: 2 additions & 2 deletions tests/Unit/ResourceModelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use Hans\Alicia\Facades\Alicia;
use Hans\Alicia\Facades\Signature;
use Hans\Alicia\Models\Resource;
use Hans\Alicia\Tests\TestCase;
use Illuminate\Http\UploadedFile;
use Illuminate\Support\Facades\DB;
Expand Down Expand Up @@ -293,8 +292,9 @@ public function isNotExternal(): void
/**
* @test
*
* @return void
* @throws InvalidManipulation
*
* @return void
*/
public function childrenDeletedAutomatically(): void
{
Expand Down

0 comments on commit ac312f1

Please sign in to comment.