Skip to content

Commit

Permalink
Remove declared but not used variables
Browse files Browse the repository at this point in the history
  • Loading branch information
olivervogel committed Dec 29, 2023
1 parent b459723 commit 818a7fd
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Drivers/AbstractDecoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
}

Expand Down
4 changes: 2 additions & 2 deletions src/Drivers/AbstractDrawModifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

Expand All @@ -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');
}

Expand Down
2 changes: 1 addition & 1 deletion src/Drivers/Gd/Decoders/FilePathImageDecoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

Expand Down
2 changes: 1 addition & 1 deletion src/Drivers/Imagick/Core.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function valid(): bool
{
try {
$result = $this->imagick->setIteratorIndex($this->iteratorIndex);
} catch (ImagickException $e) {
} catch (ImagickException) {
return false;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Drivers/Imagick/Decoders/BinaryImageDecoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

Expand Down
2 changes: 1 addition & 1 deletion src/Drivers/Imagick/Decoders/FilePathImageDecoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

Expand Down

0 comments on commit 818a7fd

Please sign in to comment.