Test Failed
Push — main ( a34f0c...2bd355 )
by Mostafa
14:43 queued 10:31
created
src/Laravel/LaravelPdfOptimizer.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Jobs/PdfOptimizerJob.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,8 +38,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/PdfOptimizerLogger.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -8,21 +8,21 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Helpers/Utils.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.