diff --git a/readme.md b/readme.md index 9be86224..6241fd1f 100644 --- a/readme.md +++ b/readme.md @@ -11,7 +11,7 @@ API for the two most popular image manipulation extensions. You can choose between the GD library or Imagick as the base layer for all operations. - Simple interface for common image editing tasks -- Interchangable driver architecture +- Interchangeable driver architecture - Support for animated images - Framework-agnostic - PSR-12 compliant diff --git a/src/Drivers/AbstractFontProcessor.php b/src/Drivers/AbstractFontProcessor.php index 33a04524..625d86fb 100644 --- a/src/Drivers/AbstractFontProcessor.php +++ b/src/Drivers/AbstractFontProcessor.php @@ -124,27 +124,27 @@ abstract class AbstractFontProcessor implements FontProcessorInterface } $wrapped = []; - $formatedLine = new Line(); + $formattedLine = new Line(); foreach ($line as $word) { - // calculate width of newly formated line - $lineWidth = $this->boxSize(match ($formatedLine->count()) { + // calculate width of newly formatted line + $lineWidth = $this->boxSize(match ($formattedLine->count()) { 0 => $word, - default => (string) $formatedLine . ' ' . $word, + default => (string) $formattedLine . ' ' . $word, }, $font)->width(); // decide if word fits on current line or a new line must be created if ($line->count() === 1 || $lineWidth <= $font->wrapWidth()) { - $formatedLine->add($word); + $formattedLine->add($word); } else { - if ($formatedLine->count()) { - $wrapped[] = $formatedLine; + if ($formattedLine->count()) { + $wrapped[] = $formattedLine; } - $formatedLine = new Line($word); + $formattedLine = new Line($word); } } - $wrapped[] = $formatedLine; + $wrapped[] = $formattedLine; return $wrapped; } diff --git a/src/Drivers/Gd/Modifiers/ContainModifier.php b/src/Drivers/Gd/Modifiers/ContainModifier.php index 72f8e212..148d2c9e 100644 --- a/src/Drivers/Gd/Modifiers/ContainModifier.php +++ b/src/Drivers/Gd/Modifiers/ContainModifier.php @@ -80,7 +80,7 @@ class ContainModifier extends GenericContainModifier implements SpecializedInter $frame->size()->height() ); - // set new content as recource + // set new content as resource $frame->setNative($modified); } } diff --git a/src/Drivers/Gd/Modifiers/CropModifier.php b/src/Drivers/Gd/Modifiers/CropModifier.php index a5696aae..56a019fd 100644 --- a/src/Drivers/Gd/Modifiers/CropModifier.php +++ b/src/Drivers/Gd/Modifiers/CropModifier.php @@ -116,7 +116,7 @@ class CropModifier extends GenericCropModifier implements SpecializedInterface ); } - // set new content as recource + // set new content as resource $frame->setNative($modified); } } diff --git a/src/Drivers/Gd/Modifiers/ResizeCanvasModifier.php b/src/Drivers/Gd/Modifiers/ResizeCanvasModifier.php index 3a6872f5..458a4fd0 100644 --- a/src/Drivers/Gd/Modifiers/ResizeCanvasModifier.php +++ b/src/Drivers/Gd/Modifiers/ResizeCanvasModifier.php @@ -76,7 +76,7 @@ class ResizeCanvasModifier extends GenericResizeCanvasModifier implements Specia $frame->size()->height() ); - // set new content as recource + // set new content as resource $frame->setNative($modified); } } diff --git a/src/Drivers/Gd/Modifiers/ResizeModifier.php b/src/Drivers/Gd/Modifiers/ResizeModifier.php index a707fc7a..faf67aaf 100644 --- a/src/Drivers/Gd/Modifiers/ResizeModifier.php +++ b/src/Drivers/Gd/Modifiers/ResizeModifier.php @@ -47,7 +47,7 @@ class ResizeModifier extends GenericResizeModifier implements SpecializedInterfa $frame->size()->height() ); - // set new content as recource + // set new content as resource $frame->setNative($modified); } diff --git a/src/Drivers/Imagick/Core.php b/src/Drivers/Imagick/Core.php index 8be5be38..67a78b9c 100644 --- a/src/Drivers/Imagick/Core.php +++ b/src/Drivers/Imagick/Core.php @@ -159,7 +159,7 @@ class Core implements CoreInterface, Iterator /** * {@inheritdoc} * - * @see Interator::rewind() + * @see Iterator::rewind() */ public function current(): mixed { @@ -171,7 +171,7 @@ class Core implements CoreInterface, Iterator /** * {@inheritdoc} * - * @see Interator::rewind() + * @see Iterator::rewind() */ public function next(): void { @@ -181,7 +181,7 @@ class Core implements CoreInterface, Iterator /** * {@inheritdoc} * - * @see Interator::rewind() + * @see Iterator::rewind() */ public function key(): mixed { @@ -191,7 +191,7 @@ class Core implements CoreInterface, Iterator /** * {@inheritdoc} * - * @see Interator::rewind() + * @see Iterator::rewind() */ public function valid(): bool { @@ -207,7 +207,7 @@ class Core implements CoreInterface, Iterator /** * {@inheritdoc} * - * @see Interator::rewind() + * @see Iterator::rewind() */ public function rewind(): void { diff --git a/src/Image.php b/src/Image.php index e15c36f7..21fe3665 100644 --- a/src/Image.php +++ b/src/Image.php @@ -254,7 +254,7 @@ final class Image implements ImageInterface /** * {@inheritdoc} * - * @see ImgageInterface::setExif() + * @see ImageInterface::setExif() */ public function setExif(CollectionInterface $exif): ImageInterface { diff --git a/src/ImageManager.php b/src/ImageManager.php index 46e9427a..a15b6a01 100644 --- a/src/ImageManager.php +++ b/src/ImageManager.php @@ -25,7 +25,7 @@ final class ImageManager } /** - * Create image mangager with given driver + * Create image manager with given driver * * @link https://image.intervention.io/v3/basics/image-manager * @param string|DriverInterface $driver diff --git a/src/Interfaces/FontProcessorInterface.php b/src/Interfaces/FontProcessorInterface.php index 3a999b38..d2742c50 100644 --- a/src/Interfaces/FontProcessorInterface.php +++ b/src/Interfaces/FontProcessorInterface.php @@ -10,7 +10,7 @@ use Intervention\Image\Typography\TextBlock; interface FontProcessorInterface { /** - * Calculate size of bounding box of given text in conjuction with the given font + * Calculate size of bounding box of given text in conjunction with the given font * * @throws FontException * @return SizeInterface diff --git a/src/Interfaces/ResolutionInterface.php b/src/Interfaces/ResolutionInterface.php index 47a8ef4b..edcd94ab 100644 --- a/src/Interfaces/ResolutionInterface.php +++ b/src/Interfaces/ResolutionInterface.php @@ -14,7 +14,7 @@ interface ResolutionInterface public function x(): float; /** - * Set resolution on x-axix + * Set resolution on x-axis * * @param float $x * @return ResolutionInterface