Skip to content

Commit

Permalink
Fixed code styling
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximilianKresse committed Aug 6, 2024
1 parent 9ec6de6 commit 1486081
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/GraphicsState.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ public function __construct($ctm = null)
if ($ctm === null) {
$ctm = new Matrix();
} elseif (!($ctm instanceof Matrix)) {
throw new \InvalidArgumentException('$ctm must be an instance of Fpdi\\Matrix or null');
}
throw new \InvalidArgumentException('$ctm must be an instance of Fpdi\\Matrix or null');
}

$this->ctm = $ctm;
}
Expand Down
6 changes: 3 additions & 3 deletions src/PdfParser/Type/PdfDictionary.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ public static function create(array $entries = [])
*/
public static function get($dictionary, $key, $default = null)
{
if ($default !== null && !($default instanceof PdfType)) {
throw new \InvalidArgumentException('Default value must be an instance of PdfType or null');
}
if ($default !== null && !($default instanceof PdfType)) {
throw new \InvalidArgumentException('Default value must be an instance of PdfType or null');
}
$dictionary = self::ensure($dictionary);

if (isset($dictionary->value[$key])) {
Expand Down
6 changes: 3 additions & 3 deletions src/PdfParser/Type/PdfStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ class PdfStream extends PdfType
*/
public static function parse(PdfDictionary $dictionary, StreamReader $reader, $parser = null)
{
if ($parser !== null && !($parser instanceof PdfParser)) {
throw new \InvalidArgumentException('$parser must be an instance of PdfParser or null');
}
if ($parser !== null && !($parser instanceof PdfParser)) {
throw new \InvalidArgumentException('$parser must be an instance of PdfParser or null');
}
$v = new self();
$v->value = $dictionary;
$v->reader = $reader;
Expand Down

0 comments on commit 1486081

Please sign in to comment.