Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze authored and github-actions[bot] committed Jan 6, 2025
1 parent ae4c244 commit d80d47e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion config/media-library.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
'-m 6', // for the slowest compression method in order to get the best compression.
'-pass 10', // for maximizing the amount of analysis pass.
'-mt', // multithreading for some speed improvements.
'-q 90', //quality factor that brings the least noticeable changes.
'-q 90', // quality factor that brings the least noticeable changes.
],
Spatie\ImageOptimizer\Optimizers\Avifenc::class => [
'-a cq-level=23', // constant quality level, lower values mean better quality and greater file size (0-63).
Expand Down
2 changes: 1 addition & 1 deletion src/Conversions/Conversion.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public function performOnCollections(...$collectionNames): self

public function shouldBePerformedOn(string $collectionName): bool
{
//if no collections were specified, perform conversion on all collections
// if no collections were specified, perform conversion on all collections
if (! count($this->performOnCollections)) {
return true;
}
Expand Down
4 changes: 2 additions & 2 deletions src/InteractsWithMedia.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ public static function bootInteractsWithMedia(): void
}

/**
* @return MorphMany<Media, $this>
*/
* @return MorphMany<Media, $this>
*/
public function media(): MorphMany
{
return $this->morphMany($this->getMediaModel(), 'model');
Expand Down
4 changes: 2 additions & 2 deletions tests/Conversions/ImageGenerators/ImageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
it(
'can convert a tiff image',
function () {
//TIFF format requires imagick
// TIFF format requires imagick
config(['media-library.image_driver' => 'imagick']);

$imageGenerator = new Image;
Expand All @@ -37,7 +37,7 @@ function () {
it(
'can convert a heic image',
function () {
//heic format requires imagick
// heic format requires imagick
config(['media-library.image_driver' => 'imagick']);

$imageGenerator = new Image;
Expand Down
2 changes: 1 addition & 1 deletion tests/ResponsiveImages/ResponsiveImageGeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
expect(File::exists($this->getTempDirectory("media/some_user/1/custom_conversions/{$this->fileName}-medium")))->toBeFalse();
expect(File::exists($this->getTempDirectory("media/some_user/1/custom_conversions/{$this->fileName}-large")))->toBeFalse();

//checks if the other media files are still there
// checks if the other media files are still there
expect($this->getTempDirectory("media/some_user/1/{$this->fileNameWithUnderscore}.jpg"))->toBeFile();
expect($this->getTempDirectory("media/some_user/1/custom_responsive_images/{$this->fileNameWithUnderscore}___media_library_original_237_195.jpg"))->toBeFile();
expect($this->getTempDirectory("media/some_user/1/custom_responsive_images/{$this->fileNameWithUnderscore}___media_library_original_284_234.jpg"))->toBeFile();
Expand Down

0 comments on commit d80d47e

Please sign in to comment.