Skip to content

Commit cc46eb8

Browse files
timvandijckgithub-actions[bot]
authored andcommitted
Fix styling
1 parent 9b24c13 commit cc46eb8

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/Conversions/ConversionCollection.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function getByName(string $name): Conversion
4242
->getConversions($this->media->collection_name)
4343
->first(fn (Conversion $conversion) => $conversion->getName() === $name);
4444

45-
if (!$conversion) {
45+
if (! $conversion) {
4646
throw InvalidConversion::unknownName($name);
4747
}
4848

@@ -53,7 +53,7 @@ protected function addConversionsFromRelatedModel(Media $media): void
5353
{
5454
$modelName = Arr::get(Relation::morphMap(), $media->model_type, $media->model_type);
5555

56-
if (!class_exists($modelName)) {
56+
if (! class_exists($modelName)) {
5757
return;
5858
}
5959

@@ -100,7 +100,7 @@ protected function addManipulationToConversion(Manipulations $manipulations, str
100100
{
101101
/** @var Conversion|null $conversion */
102102
$conversion = $this->first(function (Conversion $conversion) use ($conversionName) {
103-
if (!$conversion->shouldBePerformedOn($this->media->collection_name)) {
103+
if (! $conversion->shouldBePerformedOn($this->media->collection_name)) {
104104
return false;
105105
}
106106

@@ -128,5 +128,4 @@ public function getConversionsFiles(string $collectionName = ''): self
128128
->getConversions($collectionName)
129129
->map(fn (Conversion $conversion) => $conversion->getConversionFile($this->media));
130130
}
131-
132131
}

tests/Conversions/ConversionCollectionConversionsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function registerMediaCollections(): void
6363
->and($conversions->first()->getName())->toBe('preview')
6464
->and($conversions->first()->getResultExtension())->toBe('png')
6565
->and($conversions->first()->getManipulations()->toArray())->toMatchArray([
66-
'fit' => [Fit::Crop, 50, 50],
66+
'fit' => [Fit::Crop, 50, 50],
6767
'format' => ['png'],
6868
])
6969
->and($conversions->last()->getName())->toBe('web')
@@ -80,7 +80,7 @@ public function registerMediaCollections(): void
8080
->and($conversions->first()->getName())->toBe('preview')
8181
->and($conversions->first()->getResultExtension())->toBe('jpeg')
8282
->and($conversions->first()->getManipulations()->toArray())->toMatchArray([
83-
'fit' => [Fit::Crop, 300, 100],
83+
'fit' => [Fit::Crop, 300, 100],
8484
'format' => ['jpeg'],
8585
])
8686
->and($conversions->last()->getName())->toBe('web')

0 commit comments

Comments
 (0)