From bcfd5f311c14867e51e7ac240f3c38757c9eb2e5 Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Sat, 3 Feb 2024 02:36:49 +0000 Subject: [PATCH] Apply fixes from StyleCI --- 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); +});