| @@ -19,7 +19,7 @@ | ||
| 19 | 19 | return $this; | 
| 20 | 20 | } | 
| 21 | 21 | |
| 22 | - public function open(UploadedFile|string $file): Export | |
| 22 | + public function open(UploadedFile | string $file): Export | |
| 23 | 23 |      { | 
| 24 | 24 |          if ($file instanceof UploadedFile) { | 
| 25 | 25 | $this->disk = null; | 
| @@ -25,8 +25,7 @@ | ||
| 25 | 25 | $this->disk = null; | 
| 26 | 26 | |
| 27 | 27 | $file = File::make($file->getRealPath(), $this->disk); | 
| 28 | - } | |
| 29 | -        else { | |
| 28 | +        } else { | |
| 30 | 29 | $file = File::make($file, $this->disk); | 
| 31 | 30 | } | 
| 32 | 31 | |
| @@ -38,8 +38,7 @@ | ||
| 38 | 38 | |
| 39 | 39 |          if ($result->status) { | 
| 40 | 40 |              $this->data->logger?->info('Job finished successfully.'); | 
| 41 | - } | |
| 42 | -        else { | |
| 41 | +        } else { | |
| 43 | 42 |              $this->data->logger?->error('Job finished with error.'); | 
| 44 | 43 | |
| 45 | 44 | $this->fail($result->message); | 
| @@ -8,21 +8,21 @@ | ||
| 8 | 8 | |
| 9 | 9 | class PdfOptimizerLogger implements LoggerInterface | 
| 10 | 10 |  { | 
| 11 | -    public function emergency(Stringable|string $message, array $context = []): void {} | |
| 11 | +    public function emergency(Stringable | string $message, array $context = []): void {} | |
| 12 | 12 | |
| 13 | -    public function alert(Stringable|string $message, array $context = []): void {} | |
| 13 | +    public function alert(Stringable | string $message, array $context = []): void {} | |
| 14 | 14 | |
| 15 | -    public function critical(Stringable|string $message, array $context = []): void {} | |
| 15 | +    public function critical(Stringable | string $message, array $context = []): void {} | |
| 16 | 16 | |
| 17 | -    public function error(Stringable|string $message, array $context = []): void {} | |
| 17 | +    public function error(Stringable | string $message, array $context = []): void {} | |
| 18 | 18 | |
| 19 | -    public function warning(Stringable|string $message, array $context = []): void {} | |
| 19 | +    public function warning(Stringable | string $message, array $context = []): void {} | |
| 20 | 20 | |
| 21 | -    public function notice(Stringable|string $message, array $context = []): void {} | |
| 21 | +    public function notice(Stringable | string $message, array $context = []): void {} | |
| 22 | 22 | |
| 23 | -    public function info(Stringable|string $message, array $context = []): void {} | |
| 23 | +    public function info(Stringable | string $message, array $context = []): void {} | |
| 24 | 24 | |
| 25 | -    public function debug(Stringable|string $message, array $context = []): void {} | |
| 25 | +    public function debug(Stringable | string $message, array $context = []): void {} | |
| 26 | 26 | |
| 27 | -    public function log($level, Stringable|string $message, array $context = []): void {} | |
| 27 | +    public function log($level, Stringable | string $message, array $context = []): void {} | |
| 28 | 28 | } | 
| @@ -11,8 +11,7 @@ | ||
| 11 | 11 | // @codeCoverageIgnoreStart | 
| 12 | 12 |          if (ini_get('upload_tmp_dir')) { | 
| 13 | 13 |              $path = ini_get('upload_tmp_dir'); | 
| 14 | - } | |
| 15 | -        else if (getenv('temp')) { | |
| 14 | +        } else if (getenv('temp')) { | |
| 16 | 15 |              $path = getenv('temp'); | 
| 17 | 16 | } | 
| 18 | 17 | // @codeCoverageIgnoreEnd |