Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply fixes from StyleCI #53

Merged
merged 1 commit into from
Mar 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Apply fixes from StyleCI
StyleCIBot committed Mar 13, 2024
commit 9dbcb0f2f7352e473bb0fe953d9d3b08d174b83e
2 changes: 1 addition & 1 deletion src/Events/ConversionHasCompleted.php
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ class ConversionHasCompleted
/**
* Create a new event instance.
*
* @param $message
* @param $message
*/
public function __construct($message)
{
2 changes: 1 addition & 1 deletion src/Events/ConversionHasError.php
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ class ConversionHasError
/**
* Create a new event instance.
*
* @param $message
* @param $message
*/
public function __construct($message)
{
2 changes: 1 addition & 1 deletion src/Events/ConversionHasInputInformation.php
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ class ConversionHasInputInformation
/**
* Create a new event instance.
*
* @param $message
* @param $message
*/
public function __construct($message)
{
2 changes: 1 addition & 1 deletion src/Events/ConversionHasNewWarning.php
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ class ConversionHasNewWarning
/**
* Create a new event instance.
*
* @param $message
* @param $message
*/
public function __construct($message)
{
2 changes: 1 addition & 1 deletion src/Events/ConversionHasStatusUpdate.php
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ class ConversionHasStatusUpdate
/**
* Create a new event instance.
*
* @param $message
* @param $message
*/
public function __construct($message)
{
2 changes: 1 addition & 1 deletion src/Events/ConversionIsProgressing.php
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ class ConversionIsProgressing
/**
* Create a new event instance.
*
* @param $message
* @param $message
*/
public function __construct($message)
{
2 changes: 1 addition & 1 deletion src/Events/ConversionQueueHop.php
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ class ConversionQueueHop
/**
* Create a new event instance.
*
* @param $message
* @param $message
*/
public function __construct($message)
{
4 changes: 2 additions & 2 deletions src/Http/Controllers/IncomingWebhookController.php
Original file line number Diff line number Diff line change
@@ -54,8 +54,8 @@ public function __invoke()
}

/**
* @param $status
* @param $message
* @param $status
* @param $message
*
* @throws \Exception
*/
1 change: 1 addition & 0 deletions src/Models/MediaConversion.php
Original file line number Diff line number Diff line change
@@ -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
20 changes: 10 additions & 10 deletions tests/MediaConverterTest.php
Original file line number Diff line number Diff line change
@@ -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);
});