diff --git a/src/Drivers/AbstractDecoder.php b/src/Drivers/AbstractDecoder.php index 1378684f3..610ae1889 100644 --- a/src/Drivers/AbstractDecoder.php +++ b/src/Drivers/AbstractDecoder.php @@ -81,7 +81,7 @@ protected function extractExifData(string $image_data): CollectionInterface $pointer = $this->buildFilePointer($image_data); $data = @exif_read_data($pointer, null, true); fclose($pointer); - } catch (Exception $e) { + } catch (Exception) { $data = []; } diff --git a/src/Drivers/AbstractDrawModifier.php b/src/Drivers/AbstractDrawModifier.php index d8dbd6bc6..a75d499b0 100644 --- a/src/Drivers/AbstractDrawModifier.php +++ b/src/Drivers/AbstractDrawModifier.php @@ -21,7 +21,7 @@ public function backgroundColor(): ColorInterface { try { $color = $this->driver()->handleInput($this->drawable->backgroundColor()); - } catch (DecoderException $e) { + } catch (DecoderException) { return $this->driver()->handleInput('transparent'); } @@ -32,7 +32,7 @@ public function borderColor(): ColorInterface { try { $color = $this->driver()->handleInput($this->drawable->borderColor()); - } catch (DecoderException $e) { + } catch (DecoderException) { return $this->driver()->handleInput('transparent'); } diff --git a/src/Drivers/Gd/Decoders/FilePathImageDecoder.php b/src/Drivers/Gd/Decoders/FilePathImageDecoder.php index 21ed1c701..48a69e0f0 100644 --- a/src/Drivers/Gd/Decoders/FilePathImageDecoder.php +++ b/src/Drivers/Gd/Decoders/FilePathImageDecoder.php @@ -20,7 +20,7 @@ public function decode(mixed $input): ImageInterface|ColorInterface if (! @is_file($input)) { throw new DecoderException('Unable to decode input'); } - } catch (Exception $e) { + } catch (Exception) { throw new DecoderException('Unable to decode input'); } diff --git a/src/Drivers/Imagick/Core.php b/src/Drivers/Imagick/Core.php index ce0f041b8..96441b2db 100644 --- a/src/Drivers/Imagick/Core.php +++ b/src/Drivers/Imagick/Core.php @@ -63,7 +63,7 @@ public function valid(): bool { try { $result = $this->imagick->setIteratorIndex($this->iteratorIndex); - } catch (ImagickException $e) { + } catch (ImagickException) { return false; } diff --git a/src/Drivers/Imagick/Decoders/BinaryImageDecoder.php b/src/Drivers/Imagick/Decoders/BinaryImageDecoder.php index e51eb5147..111c7737d 100644 --- a/src/Drivers/Imagick/Decoders/BinaryImageDecoder.php +++ b/src/Drivers/Imagick/Decoders/BinaryImageDecoder.php @@ -25,7 +25,7 @@ public function decode(mixed $input): ImageInterface|ColorInterface try { $imagick = new Imagick(); $imagick->readImageBlob($input); - } catch (ImagickException $e) { + } catch (ImagickException) { throw new DecoderException('Unable to decode input'); } diff --git a/src/Drivers/Imagick/Decoders/FilePathImageDecoder.php b/src/Drivers/Imagick/Decoders/FilePathImageDecoder.php index b5b80f81a..1b76e0a11 100644 --- a/src/Drivers/Imagick/Decoders/FilePathImageDecoder.php +++ b/src/Drivers/Imagick/Decoders/FilePathImageDecoder.php @@ -20,7 +20,7 @@ public function decode(mixed $input): ImageInterface|ColorInterface if (!@is_file($input)) { throw new DecoderException('Unable to decode input'); } - } catch (Exception $e) { + } catch (Exception) { throw new DecoderException('Unable to decode input'); }