Skip to content

Commit

Permalink
Fix cs
Browse files Browse the repository at this point in the history
  • Loading branch information
distantnative committed Jan 22, 2025
1 parent cc73571 commit 0b9e922
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/Image/Darkroom.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

use Exception;
use Kirby\Image\Darkroom\GdLib;
use Kirby\Image\Darkroom\Imagick;
use Kirby\Image\Darkroom\ImageMagick;
use Kirby\Image\Darkroom\Imagick;

/**
* A wrapper around resizing and cropping
Expand Down
28 changes: 14 additions & 14 deletions src/Image/Darkroom/Imagick.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
use Kirby\Image\Focus;

/**
* Imagick
*
* @package Kirby Image
* @author Nico Hoffmann <[email protected]>
* @link https://getkirby.com
* @copyright Bastian Allgeier
* @license https://opensource.org/licenses/MIT
*/
* Imagick
*
* @package Kirby Image
* @author Nico Hoffmann <[email protected]>
* @link https://getkirby.com
* @copyright Bastian Allgeier
* @license https://opensource.org/licenses/MIT
*/
class Imagick extends Darkroom
{
protected function autoOrient(Image $image): Image
Expand All @@ -27,25 +27,25 @@ protected function autoOrient(Image $image): Image
$image->flopImage();
break;
case Image::ORIENTATION_BOTTOMRIGHT:
$image->rotateImage("#000", 180);
$image->rotateImage('#000', 180);
break;
case Image::ORIENTATION_BOTTOMLEFT:
$image->flopImage();
$image->rotateImage("#000", 180);
$image->rotateImage('#000', 180);
break;
case Image::ORIENTATION_LEFTTOP:
$image->flopImage();
$image->rotateImage("#000", -90);
$image->rotateImage('#000', -90);
break;
case Image::ORIENTATION_RIGHTTOP:
$image->rotateImage("#000", 90);
$image->rotateImage('#000', 90);
break;
case Image::ORIENTATION_RIGHTBOTTOM:
$image->flopImage();
$image->rotateImage("#000", 90);
$image->rotateImage('#000', 90);
break;
case Image::ORIENTATION_LEFTBOTTOM:
$image->rotateImage("#000", -90);
$image->rotateImage('#000', -90);
break;
default: // Invalid orientation
break;
Expand Down

0 comments on commit 0b9e922

Please sign in to comment.