Skip to content

Commit

Permalink
Fixed a few coding style issues (#670)
Browse files Browse the repository at this point in the history
  • Loading branch information
k00ni authored Jan 25, 2024
1 parent 268a620 commit 4b70df1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Smalot/PdfParser/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
}
Expand Down
2 changes: 1 addition & 1 deletion src/Smalot/PdfParser/PDFObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/Smalot/PdfParser/RawData/RawDataParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
class RawDataParser
{
/**
* @var \Smalot\PdfParser\Config
* @var Config
*/
private $config;

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 4b70df1

Please sign in to comment.