Skip to content

Commit

Permalink
Fix coding standard.
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek committed Oct 24, 2022
1 parent 2aeea4c commit a5c8bd8
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,15 @@ public function __construct(
public bool $trim = false,
public ?int $cols = null,
public ?int $rows = null,
public bool $bestfit = false
public bool $bestfit = false,
) {
$this->format = strtolower($format);
if (in_array($this->format, self::SupportedFormats, true) === false) {
throw new \InvalidArgumentException(
sprintf(
'Format "%s" is not supported. Did you mean "%s"?',
$this->format,
implode('", "', self::SupportedFormats),
)
);
throw new \InvalidArgumentException(sprintf(
'Format "%s" is not supported. Did you mean "%s"?',
$this->format,
implode('", "', self::SupportedFormats),
));
}
if (is_file($pdfPath) === false) {
throw new ConvertorException(sprintf('File "%s" does not exist.', $pdfPath));
Expand Down

0 comments on commit a5c8bd8

Please sign in to comment.