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:
parent
eff5c7d81a
commit
a09c7c9c33
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user