Skip to content

Commit

Permalink
fixed 3 CS issues
Browse files Browse the repository at this point in the history
  • Loading branch information
k00ni committed Sep 26, 2024
1 parent 8cebc93 commit fabd628
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Smalot/PdfParser/PDFObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function __construct(
Document $document,
?Header $header = null,
?string $content = null,
?Config $config = null
?Config $config = null,
) {
$this->document = $document;
$this->header = $header ?? new Header();
Expand Down Expand Up @@ -1144,7 +1144,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
2 changes: 1 addition & 1 deletion src/Smalot/PdfParser/RawData/FilterHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ protected function decodeFilterLZWDecode(string $data): string
// convert string to binary string
$bitstring = '';
for ($i = 0; $i < $data_length; ++$i) {
$bitstring .= sprintf('%08b', \ord($data[$i]));
$bitstring .= \sprintf('%08b', \ord($data[$i]));
}
// get the number of bits
$data_length = \strlen($bitstring);
Expand Down

0 comments on commit fabd628

Please sign in to comment.