Skip to content

Commit

Permalink
fixing coding style issues in PDFObject.php
Browse files Browse the repository at this point in the history
  • Loading branch information
k00ni authored Jul 14, 2023
1 parent 981bc39 commit 34f1b54
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Smalot/PdfParser/PDFObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ public function getSectionsText(?string $content): array
return $sections;
}

private function getDefaultFont(Page $page = null): Font
private function getDefaultFont(?Page $page = null): Font
{
$fonts = [];
if (null !== $page) {
Expand Down Expand Up @@ -282,7 +282,7 @@ private function getTJUsingFontFallback(Font $font, array $command, ?Page $page
/**
* @throws \Exception
*/
public function getText(Page $page = null): string
public function getText(?Page $page = null): string
{
$result = '';
$sections = $this->getSectionsText($this->content);
Expand Down Expand Up @@ -492,7 +492,7 @@ public function getText(Page $page = null): string
/**
* @throws \Exception
*/
public function getTextArray(Page $page = null): array
public function getTextArray(?Page $page = null): array
{
$text = [];
$sections = $this->getSectionsText($this->content);
Expand Down Expand Up @@ -811,7 +811,7 @@ public static function factory(
Document $document,
Header $header,
?string $content,
Config $config = null
?Config $config = null
): self {
switch ($header->get('Type')->getContent()) {
case 'XObject':
Expand Down

0 comments on commit 34f1b54

Please sign in to comment.