diff --git a/src/Collection.php b/src/Collection.php index 02dc1d95..8b9390ec 100644 --- a/src/Collection.php +++ b/src/Collection.php @@ -112,7 +112,7 @@ class Collection implements CollectionInterface, IteratorAggregate, Countable } $positions = array_values($this->items); - if (! array_key_exists($key, $positions)) { + if (!array_key_exists($key, $positions)) { return $default; } diff --git a/src/Colors/Cmyk/Decoders/StringColorDecoder.php b/src/Colors/Cmyk/Decoders/StringColorDecoder.php index a67f7175..2775f0e5 100644 --- a/src/Colors/Cmyk/Decoders/StringColorDecoder.php +++ b/src/Colors/Cmyk/Decoders/StringColorDecoder.php @@ -21,7 +21,7 @@ class StringColorDecoder extends AbstractDecoder implements DecoderInterface */ public function decode(mixed $input): ImageInterface|ColorInterface { - if (! is_string($input)) { + if (!is_string($input)) { throw new DecoderException('Unable to decode input'); } diff --git a/src/Colors/Hsl/Decoders/StringColorDecoder.php b/src/Colors/Hsl/Decoders/StringColorDecoder.php index f50fd580..779df96f 100644 --- a/src/Colors/Hsl/Decoders/StringColorDecoder.php +++ b/src/Colors/Hsl/Decoders/StringColorDecoder.php @@ -21,7 +21,7 @@ class StringColorDecoder extends AbstractDecoder implements DecoderInterface */ public function decode(mixed $input): ImageInterface|ColorInterface { - if (! is_string($input)) { + if (!is_string($input)) { throw new DecoderException('Unable to decode input'); } diff --git a/src/Colors/Hsv/Decoders/StringColorDecoder.php b/src/Colors/Hsv/Decoders/StringColorDecoder.php index 5a39ca21..9a4d2645 100644 --- a/src/Colors/Hsv/Decoders/StringColorDecoder.php +++ b/src/Colors/Hsv/Decoders/StringColorDecoder.php @@ -21,7 +21,7 @@ class StringColorDecoder extends AbstractDecoder implements DecoderInterface */ public function decode(mixed $input): ImageInterface|ColorInterface { - if (! is_string($input)) { + if (!is_string($input)) { throw new DecoderException('Unable to decode input'); } diff --git a/src/Colors/Rgb/Decoders/HexColorDecoder.php b/src/Colors/Rgb/Decoders/HexColorDecoder.php index 73cd5aa1..36bf62c5 100644 --- a/src/Colors/Rgb/Decoders/HexColorDecoder.php +++ b/src/Colors/Rgb/Decoders/HexColorDecoder.php @@ -21,7 +21,7 @@ class HexColorDecoder extends AbstractDecoder implements DecoderInterface */ public function decode(mixed $input): ImageInterface|ColorInterface { - if (! is_string($input)) { + if (!is_string($input)) { throw new DecoderException('Unable to decode input'); } diff --git a/src/Colors/Rgb/Decoders/HtmlColornameDecoder.php b/src/Colors/Rgb/Decoders/HtmlColornameDecoder.php index 8c91842f..61680ca5 100644 --- a/src/Colors/Rgb/Decoders/HtmlColornameDecoder.php +++ b/src/Colors/Rgb/Decoders/HtmlColornameDecoder.php @@ -161,7 +161,7 @@ class HtmlColornameDecoder extends HexColorDecoder implements DecoderInterface */ public function decode(mixed $input): ImageInterface|ColorInterface { - if (! is_string($input)) { + if (!is_string($input)) { throw new DecoderException('Unable to decode input'); } diff --git a/src/Colors/Rgb/Decoders/TransparentColorDecoder.php b/src/Colors/Rgb/Decoders/TransparentColorDecoder.php index e31fdd4b..c3823d74 100644 --- a/src/Colors/Rgb/Decoders/TransparentColorDecoder.php +++ b/src/Colors/Rgb/Decoders/TransparentColorDecoder.php @@ -12,7 +12,7 @@ class TransparentColorDecoder extends HexColorDecoder { public function decode(mixed $input): ImageInterface|ColorInterface { - if (! is_string($input)) { + if (!is_string($input)) { throw new DecoderException('Unable to decode input'); } diff --git a/src/Drivers/Gd/ColorProcessor.php b/src/Drivers/Gd/ColorProcessor.php index e7b5ba3f..c2660340 100644 --- a/src/Drivers/Gd/ColorProcessor.php +++ b/src/Drivers/Gd/ColorProcessor.php @@ -41,7 +41,7 @@ class ColorProcessor implements ColorProcessorInterface public function nativeToColor(mixed $value): ColorInterface { - if (! is_int($value)) { + if (!is_int($value)) { throw new ColorException('GD driver can only decode colors in integer format.'); } diff --git a/src/Drivers/Gd/Decoders/Base64ImageDecoder.php b/src/Drivers/Gd/Decoders/Base64ImageDecoder.php index 0b6c7531..f8970b65 100644 --- a/src/Drivers/Gd/Decoders/Base64ImageDecoder.php +++ b/src/Drivers/Gd/Decoders/Base64ImageDecoder.php @@ -13,7 +13,7 @@ class Base64ImageDecoder extends BinaryImageDecoder implements DecoderInterface { public function decode(mixed $input): ImageInterface|ColorInterface { - if (! $this->isValidBase64($input)) { + if (!$this->isValidBase64($input)) { throw new DecoderException('Unable to decode input'); } diff --git a/src/Drivers/Gd/Decoders/ColorObjectDecoder.php b/src/Drivers/Gd/Decoders/ColorObjectDecoder.php index cd3477c3..b1096aa6 100644 --- a/src/Drivers/Gd/Decoders/ColorObjectDecoder.php +++ b/src/Drivers/Gd/Decoders/ColorObjectDecoder.php @@ -14,7 +14,7 @@ class ColorObjectDecoder extends AbstractDecoder implements DecoderInterface { public function decode(mixed $input): ImageInterface|ColorInterface { - if (! is_a($input, ColorInterface::class)) { + if (!is_a($input, ColorInterface::class)) { throw new DecoderException('Unable to decode input'); } diff --git a/src/Drivers/Gd/Decoders/DataUriImageDecoder.php b/src/Drivers/Gd/Decoders/DataUriImageDecoder.php index 46ce5806..939b1e0e 100644 --- a/src/Drivers/Gd/Decoders/DataUriImageDecoder.php +++ b/src/Drivers/Gd/Decoders/DataUriImageDecoder.php @@ -19,7 +19,7 @@ class DataUriImageDecoder extends BinaryImageDecoder implements DecoderInterface $uri = $this->parseDataUri($input); - if (! $uri->isValid()) { + if (!$uri->isValid()) { throw new DecoderException('Unable to decode input'); } diff --git a/src/Drivers/Gd/Decoders/ImageObjectDecoder.php b/src/Drivers/Gd/Decoders/ImageObjectDecoder.php index a761008c..aa5e9eb1 100644 --- a/src/Drivers/Gd/Decoders/ImageObjectDecoder.php +++ b/src/Drivers/Gd/Decoders/ImageObjectDecoder.php @@ -14,7 +14,7 @@ class ImageObjectDecoder extends AbstractDecoder implements DecoderInterface { public function decode(mixed $input): ImageInterface|ColorInterface { - if (! is_a($input, ImageInterface::class)) { + if (!is_a($input, ImageInterface::class)) { throw new DecoderException('Unable to decode input'); } diff --git a/src/Drivers/Gd/Decoders/SplFileInfoImageDecoder.php b/src/Drivers/Gd/Decoders/SplFileInfoImageDecoder.php index 26a470b2..7febefb0 100644 --- a/src/Drivers/Gd/Decoders/SplFileInfoImageDecoder.php +++ b/src/Drivers/Gd/Decoders/SplFileInfoImageDecoder.php @@ -14,7 +14,7 @@ class SplFileInfoImageDecoder extends FilePathImageDecoder implements DecoderInt { public function decode(mixed $input): ImageInterface|ColorInterface { - if (! is_a($input, SplFileInfo::class)) { + if (!is_a($input, SplFileInfo::class)) { throw new DecoderException('Unable to decode input'); } diff --git a/src/Drivers/Imagick/Decoders/Base64ImageDecoder.php b/src/Drivers/Imagick/Decoders/Base64ImageDecoder.php index 1d788ab3..70eac684 100644 --- a/src/Drivers/Imagick/Decoders/Base64ImageDecoder.php +++ b/src/Drivers/Imagick/Decoders/Base64ImageDecoder.php @@ -13,7 +13,7 @@ class Base64ImageDecoder extends BinaryImageDecoder implements DecoderInterface { public function decode(mixed $input): ImageInterface|ColorInterface { - if (! $this->isValidBase64($input)) { + if (!$this->isValidBase64($input)) { throw new DecoderException('Unable to decode input'); } diff --git a/src/Drivers/Imagick/Decoders/ColorObjectDecoder.php b/src/Drivers/Imagick/Decoders/ColorObjectDecoder.php index 47c4bac2..31f60115 100644 --- a/src/Drivers/Imagick/Decoders/ColorObjectDecoder.php +++ b/src/Drivers/Imagick/Decoders/ColorObjectDecoder.php @@ -14,7 +14,7 @@ class ColorObjectDecoder extends AbstractDecoder implements DecoderInterface { public function decode(mixed $input): ImageInterface|ColorInterface { - if (! is_a($input, ColorInterface::class)) { + if (!is_a($input, ColorInterface::class)) { throw new DecoderException('Unable to decode input'); } diff --git a/src/Drivers/Imagick/Decoders/DataUriImageDecoder.php b/src/Drivers/Imagick/Decoders/DataUriImageDecoder.php index 16f79444..2e8633ee 100644 --- a/src/Drivers/Imagick/Decoders/DataUriImageDecoder.php +++ b/src/Drivers/Imagick/Decoders/DataUriImageDecoder.php @@ -19,7 +19,7 @@ class DataUriImageDecoder extends BinaryImageDecoder implements DecoderInterface $uri = $this->parseDataUri($input); - if (! $uri->isValid()) { + if (!$uri->isValid()) { throw new DecoderException('Unable to decode input'); } diff --git a/src/Drivers/Imagick/Decoders/ImageObjectDecoder.php b/src/Drivers/Imagick/Decoders/ImageObjectDecoder.php index 0ea0fb14..d307ca3d 100644 --- a/src/Drivers/Imagick/Decoders/ImageObjectDecoder.php +++ b/src/Drivers/Imagick/Decoders/ImageObjectDecoder.php @@ -14,7 +14,7 @@ class ImageObjectDecoder extends AbstractDecoder implements DecoderInterface { public function decode(mixed $input): ImageInterface|ColorInterface { - if (! is_a($input, ImageInterface::class)) { + if (!is_a($input, ImageInterface::class)) { throw new DecoderException('Unable to decode input'); } diff --git a/src/Drivers/Imagick/Decoders/SplFileInfoImageDecoder.php b/src/Drivers/Imagick/Decoders/SplFileInfoImageDecoder.php index 0210894f..c1b3154f 100644 --- a/src/Drivers/Imagick/Decoders/SplFileInfoImageDecoder.php +++ b/src/Drivers/Imagick/Decoders/SplFileInfoImageDecoder.php @@ -14,7 +14,7 @@ class SplFileInfoImageDecoder extends FilePathImageDecoder implements DecoderInt { public function decode(mixed $input): ImageInterface|ColorInterface { - if (! is_a($input, SplFileInfo::class)) { + if (!is_a($input, SplFileInfo::class)) { throw new DecoderException('Unable to decode input'); }