From fabd6280be21e94c541fd3ee76756e3749a1b2e6 Mon Sep 17 00:00:00 2001 From: Konrad Abicht Date: Thu, 26 Sep 2024 08:09:25 +0200 Subject: [PATCH] fixed 3 CS issues --- src/Smalot/PdfParser/PDFObject.php | 4 ++-- src/Smalot/PdfParser/RawData/FilterHelper.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Smalot/PdfParser/PDFObject.php b/src/Smalot/PdfParser/PDFObject.php index a0d16dfe..407614d2 100644 --- a/src/Smalot/PdfParser/PDFObject.php +++ b/src/Smalot/PdfParser/PDFObject.php @@ -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(); @@ -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': diff --git a/src/Smalot/PdfParser/RawData/FilterHelper.php b/src/Smalot/PdfParser/RawData/FilterHelper.php index a6f11b30..4bab847e 100644 --- a/src/Smalot/PdfParser/RawData/FilterHelper.php +++ b/src/Smalot/PdfParser/RawData/FilterHelper.php @@ -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);