1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-22 21:42:53 +02:00

Remove spaces after not operators

This commit is contained in:
Oliver Vogel
2024-01-31 16:13:25 +01:00
parent 875b2690cd
commit 54fd50bcd9
18 changed files with 18 additions and 18 deletions

View File

@@ -112,7 +112,7 @@ class Collection implements CollectionInterface, IteratorAggregate, Countable
} }
$positions = array_values($this->items); $positions = array_values($this->items);
if (! array_key_exists($key, $positions)) { if (!array_key_exists($key, $positions)) {
return $default; return $default;
} }

View File

@@ -21,7 +21,7 @@ class StringColorDecoder extends AbstractDecoder implements DecoderInterface
*/ */
public function decode(mixed $input): ImageInterface|ColorInterface public function decode(mixed $input): ImageInterface|ColorInterface
{ {
if (! is_string($input)) { if (!is_string($input)) {
throw new DecoderException('Unable to decode input'); throw new DecoderException('Unable to decode input');
} }

View File

@@ -21,7 +21,7 @@ class StringColorDecoder extends AbstractDecoder implements DecoderInterface
*/ */
public function decode(mixed $input): ImageInterface|ColorInterface public function decode(mixed $input): ImageInterface|ColorInterface
{ {
if (! is_string($input)) { if (!is_string($input)) {
throw new DecoderException('Unable to decode input'); throw new DecoderException('Unable to decode input');
} }

View File

@@ -21,7 +21,7 @@ class StringColorDecoder extends AbstractDecoder implements DecoderInterface
*/ */
public function decode(mixed $input): ImageInterface|ColorInterface public function decode(mixed $input): ImageInterface|ColorInterface
{ {
if (! is_string($input)) { if (!is_string($input)) {
throw new DecoderException('Unable to decode input'); throw new DecoderException('Unable to decode input');
} }

View File

@@ -21,7 +21,7 @@ class HexColorDecoder extends AbstractDecoder implements DecoderInterface
*/ */
public function decode(mixed $input): ImageInterface|ColorInterface public function decode(mixed $input): ImageInterface|ColorInterface
{ {
if (! is_string($input)) { if (!is_string($input)) {
throw new DecoderException('Unable to decode input'); throw new DecoderException('Unable to decode input');
} }

View File

@@ -161,7 +161,7 @@ class HtmlColornameDecoder extends HexColorDecoder implements DecoderInterface
*/ */
public function decode(mixed $input): ImageInterface|ColorInterface public function decode(mixed $input): ImageInterface|ColorInterface
{ {
if (! is_string($input)) { if (!is_string($input)) {
throw new DecoderException('Unable to decode input'); throw new DecoderException('Unable to decode input');
} }

View File

@@ -12,7 +12,7 @@ class TransparentColorDecoder extends HexColorDecoder
{ {
public function decode(mixed $input): ImageInterface|ColorInterface public function decode(mixed $input): ImageInterface|ColorInterface
{ {
if (! is_string($input)) { if (!is_string($input)) {
throw new DecoderException('Unable to decode input'); throw new DecoderException('Unable to decode input');
} }

View File

@@ -41,7 +41,7 @@ class ColorProcessor implements ColorProcessorInterface
public function nativeToColor(mixed $value): ColorInterface 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.'); throw new ColorException('GD driver can only decode colors in integer format.');
} }

View File

@@ -13,7 +13,7 @@ class Base64ImageDecoder extends BinaryImageDecoder implements DecoderInterface
{ {
public function decode(mixed $input): ImageInterface|ColorInterface public function decode(mixed $input): ImageInterface|ColorInterface
{ {
if (! $this->isValidBase64($input)) { if (!$this->isValidBase64($input)) {
throw new DecoderException('Unable to decode input'); throw new DecoderException('Unable to decode input');
} }

View File

@@ -14,7 +14,7 @@ class ColorObjectDecoder extends AbstractDecoder implements DecoderInterface
{ {
public function decode(mixed $input): ImageInterface|ColorInterface 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'); throw new DecoderException('Unable to decode input');
} }

View File

@@ -19,7 +19,7 @@ class DataUriImageDecoder extends BinaryImageDecoder implements DecoderInterface
$uri = $this->parseDataUri($input); $uri = $this->parseDataUri($input);
if (! $uri->isValid()) { if (!$uri->isValid()) {
throw new DecoderException('Unable to decode input'); throw new DecoderException('Unable to decode input');
} }

View File

@@ -14,7 +14,7 @@ class ImageObjectDecoder extends AbstractDecoder implements DecoderInterface
{ {
public function decode(mixed $input): ImageInterface|ColorInterface 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'); throw new DecoderException('Unable to decode input');
} }

View File

@@ -14,7 +14,7 @@ class SplFileInfoImageDecoder extends FilePathImageDecoder implements DecoderInt
{ {
public function decode(mixed $input): ImageInterface|ColorInterface 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'); throw new DecoderException('Unable to decode input');
} }

View File

@@ -13,7 +13,7 @@ class Base64ImageDecoder extends BinaryImageDecoder implements DecoderInterface
{ {
public function decode(mixed $input): ImageInterface|ColorInterface public function decode(mixed $input): ImageInterface|ColorInterface
{ {
if (! $this->isValidBase64($input)) { if (!$this->isValidBase64($input)) {
throw new DecoderException('Unable to decode input'); throw new DecoderException('Unable to decode input');
} }

View File

@@ -14,7 +14,7 @@ class ColorObjectDecoder extends AbstractDecoder implements DecoderInterface
{ {
public function decode(mixed $input): ImageInterface|ColorInterface 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'); throw new DecoderException('Unable to decode input');
} }

View File

@@ -19,7 +19,7 @@ class DataUriImageDecoder extends BinaryImageDecoder implements DecoderInterface
$uri = $this->parseDataUri($input); $uri = $this->parseDataUri($input);
if (! $uri->isValid()) { if (!$uri->isValid()) {
throw new DecoderException('Unable to decode input'); throw new DecoderException('Unable to decode input');
} }

View File

@@ -14,7 +14,7 @@ class ImageObjectDecoder extends AbstractDecoder implements DecoderInterface
{ {
public function decode(mixed $input): ImageInterface|ColorInterface 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'); throw new DecoderException('Unable to decode input');
} }

View File

@@ -14,7 +14,7 @@ class SplFileInfoImageDecoder extends FilePathImageDecoder implements DecoderInt
{ {
public function decode(mixed $input): ImageInterface|ColorInterface 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'); throw new DecoderException('Unable to decode input');
} }