Skip to content

Commit

Permalink
Fix Coding standard by current Nette rules
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek committed Jan 29, 2021
1 parent c0f3b9f commit 31ff133
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Convertor.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ final class Convertor
/** @throws \Error */
public function __construct()
{
throw new \Error('Class ' . get_class($this) . ' is static and cannot be instantiated.');
throw new \Error('Class ' . static::class . ' is static and cannot be instantiated.');
}


Expand All @@ -33,7 +33,7 @@ public static function convert(string $pdfPath, string $savePath, string $format
if (\in_array($format = strtolower($format), self::SUPPORTED_FORMATS, true) === false) {
throw new \InvalidArgumentException(
'Format "' . $format . '" is not supported. '
. 'Did you mean "' . implode('", "', self::SUPPORTED_FORMATS) . '"?'
. 'Did you mean "' . implode('", "', self::SUPPORTED_FORMATS) . '"?',
);
}
if (\is_file($pdfPath) === false) {
Expand Down

0 comments on commit 31ff133

Please sign in to comment.