From 0b30058812263362c498efd7217a3c3efb079465 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 17 Jan 2024 23:59:09 +0000 Subject: [PATCH 1/2] chore(deps): update actions/cache action to v4 --- .github/workflows/run-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 79310e8..d17d74a 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -33,7 +33,7 @@ jobs: extensions: mbstring, intl, pdo, pdo_sqlite, sqlite, curl - name: Cache dependencies - uses: actions/cache@v1 + uses: actions/cache@v4 with: path: ~/.composer/cache/files key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} From 62f2c896c38f00f65f481fb11aafba5ebec334c4 Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 17 Jan 2024 15:59:22 -0800 Subject: [PATCH 2/2] Apply fixes from StyleCI (#50) --- src/Events/ConversionHasCompleted.php | 2 +- src/Events/ConversionHasError.php | 2 +- src/Events/ConversionHasInputInformation.php | 2 +- src/Events/ConversionHasNewWarning.php | 2 +- src/Events/ConversionHasStatusUpdate.php | 2 +- src/Events/ConversionIsProgressing.php | 2 +- src/Events/ConversionQueueHop.php | 2 +- .../Controllers/IncomingWebhookController.php | 4 ++-- src/Models/MediaConversion.php | 1 + tests/MediaConverterTest.php | 20 +++++++++---------- 10 files changed, 20 insertions(+), 19 deletions(-) diff --git a/src/Events/ConversionHasCompleted.php b/src/Events/ConversionHasCompleted.php index 0f9a385..9f32e3e 100644 --- a/src/Events/ConversionHasCompleted.php +++ b/src/Events/ConversionHasCompleted.php @@ -16,7 +16,7 @@ class ConversionHasCompleted /** * Create a new event instance. * - * @param $message + * @param $message */ public function __construct($message) { diff --git a/src/Events/ConversionHasError.php b/src/Events/ConversionHasError.php index 5606e8f..e9a01d1 100644 --- a/src/Events/ConversionHasError.php +++ b/src/Events/ConversionHasError.php @@ -16,7 +16,7 @@ class ConversionHasError /** * Create a new event instance. * - * @param $message + * @param $message */ public function __construct($message) { diff --git a/src/Events/ConversionHasInputInformation.php b/src/Events/ConversionHasInputInformation.php index 06a84c8..dc49f29 100644 --- a/src/Events/ConversionHasInputInformation.php +++ b/src/Events/ConversionHasInputInformation.php @@ -16,7 +16,7 @@ class ConversionHasInputInformation /** * Create a new event instance. * - * @param $message + * @param $message */ public function __construct($message) { diff --git a/src/Events/ConversionHasNewWarning.php b/src/Events/ConversionHasNewWarning.php index 345fa92..c11862d 100644 --- a/src/Events/ConversionHasNewWarning.php +++ b/src/Events/ConversionHasNewWarning.php @@ -16,7 +16,7 @@ class ConversionHasNewWarning /** * Create a new event instance. * - * @param $message + * @param $message */ public function __construct($message) { diff --git a/src/Events/ConversionHasStatusUpdate.php b/src/Events/ConversionHasStatusUpdate.php index c4721fc..343d0a9 100644 --- a/src/Events/ConversionHasStatusUpdate.php +++ b/src/Events/ConversionHasStatusUpdate.php @@ -16,7 +16,7 @@ class ConversionHasStatusUpdate /** * Create a new event instance. * - * @param $message + * @param $message */ public function __construct($message) { diff --git a/src/Events/ConversionIsProgressing.php b/src/Events/ConversionIsProgressing.php index 1b1bdce..481bf7c 100644 --- a/src/Events/ConversionIsProgressing.php +++ b/src/Events/ConversionIsProgressing.php @@ -16,7 +16,7 @@ class ConversionIsProgressing /** * Create a new event instance. * - * @param $message + * @param $message */ public function __construct($message) { diff --git a/src/Events/ConversionQueueHop.php b/src/Events/ConversionQueueHop.php index 9b7e8aa..b714a58 100644 --- a/src/Events/ConversionQueueHop.php +++ b/src/Events/ConversionQueueHop.php @@ -16,7 +16,7 @@ class ConversionQueueHop /** * Create a new event instance. * - * @param $message + * @param $message */ public function __construct($message) { diff --git a/src/Http/Controllers/IncomingWebhookController.php b/src/Http/Controllers/IncomingWebhookController.php index deb4ec3..535ab9d 100644 --- a/src/Http/Controllers/IncomingWebhookController.php +++ b/src/Http/Controllers/IncomingWebhookController.php @@ -54,8 +54,8 @@ public function __invoke() } /** - * @param $status - * @param $message + * @param $status + * @param $message * * @throws \Exception */ diff --git a/src/Models/MediaConversion.php b/src/Models/MediaConversion.php index 3370271..a6df1a0 100644 --- a/src/Models/MediaConversion.php +++ b/src/Models/MediaConversion.php @@ -31,6 +31,7 @@ * @method static \Illuminate\Database\Eloquent\Builder|MediaConversion wherePercentageCompleted($value) * @method static \Illuminate\Database\Eloquent\Builder|MediaConversion whereStatus($value) * @method static \Illuminate\Database\Eloquent\Builder|MediaConversion whereUpdatedAt($value) + * * @mixin \Eloquent */ class MediaConversion extends Model diff --git a/tests/MediaConverterTest.php b/tests/MediaConverterTest.php index aab1a5f..d6e7b3b 100644 --- a/tests/MediaConverterTest.php +++ b/tests/MediaConverterTest.php @@ -95,17 +95,17 @@ $this->assertEquals($response['Job']['Id'], $jobId); }); - it('can successfully cancel a job', function () { - $job = MediaConvert::createJob($this->jobSettings, []); +it('can successfully cancel a job', function () { + $job = MediaConvert::createJob($this->jobSettings, []); - $response = MediaConvert::cancelJob($job['Job']['Id']); + $response = MediaConvert::cancelJob($job['Job']['Id']); - $this->assertEquals($response['@metadata']['statusCode'], 202); - }); + $this->assertEquals($response['@metadata']['statusCode'], 202); +}); - it('can successfully list jobs', function () { - $response = MediaConvert::listJobs([]); +it('can successfully list jobs', function () { + $response = MediaConvert::listJobs([]); - $this->assertEquals($response['@metadata']['statusCode'], 200); - $this->assertTrue(count($response) > 0); - }); + $this->assertEquals($response['@metadata']['statusCode'], 200); + $this->assertTrue(count($response) > 0); +});