1
0
mirror of https://github.com/Intervention/image.git synced 2025-01-16 19:58:14 +01:00

Remove unnecessary brackets

This commit is contained in:
Oliver Vogel 2024-10-06 16:09:09 +02:00
parent eff5c7d81a
commit a09c7c9c33
No known key found for this signature in database
GPG Key ID: 1B19D214C02D69BB
2 changed files with 4 additions and 4 deletions

View File

@ -70,7 +70,7 @@ abstract class AbstractDriver implements DriverInterface
}
// return directly and only attach driver if object is already specialized
if (($object instanceof SpecializedInterface)) {
if ($object instanceof SpecializedInterface) {
$object->setDriver($this);
return $object;
@ -88,7 +88,7 @@ abstract class AbstractDriver implements DriverInterface
}
// create a driver specialized object with the specializable properties of generic object
$specialized = (new $specialized_classname(...$object->specializable()));
$specialized = new $specialized_classname(...$object->specializable());
// attach driver
return $specialized->setDriver($this);

View File

@ -163,10 +163,10 @@ abstract class AbstractFontProcessor implements FontProcessorInterface
protected function buildPivot(TextBlock $block, FontInterface $font, PointInterface $position): PointInterface
{
// bounding box
$box = (new Rectangle(
$box = new Rectangle(
$this->boxSize((string) $block->longestLine(), $font)->width(),
$this->leading($font) * ($block->count() - 1) + $this->capHeight($font)
));
);
// set position
$box->setPivot($position);