From 4b70df14dc35f7aa394957fd2d18189d056a2509 Mon Sep 17 00:00:00 2001 From: Konrad Abicht Date: Thu, 25 Jan 2024 14:25:38 +0100 Subject: [PATCH] Fixed a few coding style issues (#670) --- src/Smalot/PdfParser/Document.php | 2 +- src/Smalot/PdfParser/PDFObject.php | 2 +- src/Smalot/PdfParser/RawData/RawDataParser.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Smalot/PdfParser/Document.php b/src/Smalot/PdfParser/Document.php index 8412eed8..1b5dc919 100644 --- a/src/Smalot/PdfParser/Document.php +++ b/src/Smalot/PdfParser/Document.php @@ -255,7 +255,7 @@ public function extractXMPMetadata(string $content): void if ('rdf:li' == $val['tag']) { $metadata[] = $val['value']; - // Else assign a value to this property + // Else assign a value to this property } else { $metadata[$val['tag']] = $val['value']; } diff --git a/src/Smalot/PdfParser/PDFObject.php b/src/Smalot/PdfParser/PDFObject.php index 30901ecb..6e24064d 100644 --- a/src/Smalot/PdfParser/PDFObject.php +++ b/src/Smalot/PdfParser/PDFObject.php @@ -361,7 +361,7 @@ public function getSectionsText(?string $content): array $inTextBlock = true; $sections[] = $line; - // If an 'ET' is encountered, unset the $inTextBlock flag + // If an 'ET' is encountered, unset the $inTextBlock flag } elseif ('ET' == $line) { $inTextBlock = false; $sections[] = $line; diff --git a/src/Smalot/PdfParser/RawData/RawDataParser.php b/src/Smalot/PdfParser/RawData/RawDataParser.php index 77630897..8f8c15dc 100644 --- a/src/Smalot/PdfParser/RawData/RawDataParser.php +++ b/src/Smalot/PdfParser/RawData/RawDataParser.php @@ -47,7 +47,7 @@ class RawDataParser { /** - * @var \Smalot\PdfParser\Config + * @var Config */ private $config; @@ -402,7 +402,7 @@ protected function decodeXrefStream(string $pdfData, int $startxref, array $xref } $prev_row = $ddata[$k]; } // end for each row - // complete decoding + // complete decoding } else { // number of bytes in a row $rowlen = array_sum($wb);