Skip to content

Commit

Permalink
Add missing line returns.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaasuni committed Aug 13, 2024
1 parent cd667f3 commit bc9de59
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/Output.php
Original file line number Diff line number Diff line change
Expand Up @@ -660,12 +660,12 @@ protected function getOutICC(): string
}

$icc = $this->encrypt->encryptString($icc, $oid);
return $out . ('<< /N 3 /Filter /FlateDecode /Length ' . strlen($icc)
return $out . '<< /N 3 /Filter /FlateDecode /Length ' . strlen($icc)
. ' >>'
. ' stream' . "\n"
. $icc . "\n"
. 'endstream' . "\n"
. 'endobj' . "\n");
. 'endobj' . "\n";
}

/**
Expand Down Expand Up @@ -982,15 +982,15 @@ protected function getOutAPXObjects(

$stream = $this->encrypt->encryptString($stream, $oid);
$rect = sprintf('%F %F', $width, $height);
return $out . (' /BBox [0 0 ' . $rect . ']'
return $out . ' /BBox [0 0 ' . $rect . ']'
. ' /Matrix [1 0 0 1 0 0]'
. ' /Resources 2 0 R'
. ' /Length ' . strlen($stream)
. ' >>'
. ' stream' . "\n"
. $stream . "\n"
. 'endstream' . "\n"
. 'endobj' . "\n");
. 'endobj' . "\n";
}

/**
Expand Down Expand Up @@ -1140,8 +1140,8 @@ protected function getOutDestinations(): string
$out .= ' /' . $name . ' ' . sprintf('[%u 0 R /XYZ %F %F null]', $poid, $pgx, $pgy);
}

return $out . (' >>' . "\n"
. 'endobj' . "\n");
return $out . ' >>' . "\n"
. 'endobj' . "\n";
}

/**
Expand Down Expand Up @@ -2654,18 +2654,18 @@ protected function getOutBookmarks(): string
}

$out .= ' /Count 0 >>' . "\n"
. 'endobj';
. 'endobj' . "\n";
}

//Outline root
$this->outlinerootoid = ++$this->pon;
return $out . ($this->outlinerootoid . ' 0 obj' . "\n"
return $out . $this->outlinerootoid . ' 0 obj' . "\n"
. '<<'
. ' /Type /Outlines'
. ' /First ' . $first_oid . ' 0 R'
. ' /Last ' . ($first_oid + $root_oid) . ' 0 R'
. ' >>' . "\n"
. 'endobj');
. 'endobj' . "\n";
}

/**
Expand All @@ -2692,7 +2692,7 @@ protected function getOutSignatureFields(): string
. ' /T ' . $this->getOutTextString($signame, $esa['objid'], true)
. ' /Ff 0'
. ' >>'
. "\n" . 'endobj';
. "\n" . 'endobj' . "\n";
}

return $out;
Expand Down Expand Up @@ -2820,7 +2820,7 @@ protected function getOutSignature(): string
. ' /Ff 0'
. ' /V ' . $oid . ' 0 R'
. ' >>' . "\n"
. 'endobj';
. 'endobj' . "\n";
$out .= $oid . ' 0 obj' . "\n";
$out .= '<< /Type /Sig /Filter /Adobe.PPKLite /SubFilter /adbe.pkcs7.detached '
. $this::BYTERANGE
Expand All @@ -2842,10 +2842,10 @@ protected function getOutSignature(): string
}

$out .= $this->getOutSignatureInfo($oid);
return $out . (' /M '
return $out . ' /M '
. $this->getOutDateTimeString($this->docmodtime, $oid)
. ' >>' . "\n"
. 'endobj');
. 'endobj' . "\n";
}

/**
Expand Down

0 comments on commit bc9de59

Please sign in to comment.