Skip to content

Commit

Permalink
Fix codestyle manually
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek committed Jan 29, 2021
1 parent 31ff133 commit b60c861
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 @@ -74,7 +74,7 @@ private static function process(string $pdfPath, string $savePath): \Imagick
*
* @throws ConvertorException
*/
private static function write(string $file, string $content, ?int $mode = 0666): void
private static function write(string $file, string $content, ?int $mode = 0_666): void
{
static::createDir(dirname($file));
if (@file_put_contents($file, $content) === false) { // @ is escalated to exception
Expand All @@ -91,7 +91,7 @@ private static function write(string $file, string $content, ?int $mode = 0666):
*
* @throws ConvertorException
*/
private static function createDir(string $dir, int $mode = 0777): void
private static function createDir(string $dir, int $mode = 0_777): void
{
if (!is_dir($dir) && !@mkdir($dir, $mode, true) && !is_dir($dir)) { // @ - dir may already exist
throw new ConvertorException('Unable to create directory "' . $dir . '": ' . self::getLastError());
Expand Down

0 comments on commit b60c861

Please sign in to comment.