Skip to content

Commit

Permalink
Fix non-null applys
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBernskiold committed Feb 18, 2024
1 parent 019dc41 commit 02e5379
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Branding/ParagraphStyle.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function applyToComponent(Component $component): void
$component->font($this->font);
}

if ($this->bold && method_exists($component, 'bold') && $component->bold === null) {
if ($this->bold && method_exists($component, 'bold')) {
$component->bold($this->bold);
}

Expand All @@ -74,7 +74,7 @@ public function applyToComponent(Component $component): void
$component->lineHeight($this->lineHeight);
}

if ($this->uppercase && method_exists($component, 'uppercase') && $component->uppercase === null) {
if ($this->uppercase && method_exists($component, 'uppercase')) {
$component->uppercase($this->uppercase);
}
}
Expand Down

0 comments on commit 02e5379

Please sign in to comment.