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 d3b008e commit 4ac506e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 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
2 changes: 1 addition & 1 deletion src/Services/Actions/Delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
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());
}
};

0 comments on commit 4ac506e

Please sign in to comment.