Test Failed
Pull Request — master (#34)
by
unknown
04:07
created
src/Jobs/ProcessFFMpeg.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,8 +55,7 @@  discard block
 block discarded – undo
55 55
                     isLastOne: $this->availableQueues() === 1,
56 56
                     standalone: true
57 57
                 );
58
-            }
59
-            else {
58
+            } else {
60 59
                 /** @var Model $class */
61 60
                 $class = class_exists($this->model) ? $this->model : Relation::getMorphedModel($this->model);
62 61
                 $modelNotSaved = true;
@@ -75,8 +74,7 @@  discard block
 block discarded – undo
75 74
             }
76 75
 
77 76
             $this->updateStatus(true, false);
78
-        }
79
-        catch (FileNotFoundException | Exception $e) {
77
+        } catch (FileNotFoundException | Exception $e) {
80 78
             $this->updateStatus(false, false, $e->getMessage());
81 79
 
82 80
             throw new Exception($e->getMessage());
Please login to merge, or discard this patch.
src/DTOs/Style/AudioStyle.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,10 +10,10 @@  discard block
 block discarded – undo
10 10
 
11 11
 class AudioStyle extends Style
12 12
 {
13
-    public readonly Mp3|Aac|Wav|Flac $format;
13
+    public readonly Mp3 | Aac | Wav | Flac $format;
14 14
 
15 15
 
16
-    public function __construct(string $name, Mp3|Aac|Wav|Flac $format = new Mp3)
16
+    public function __construct(string $name, Mp3 | Aac | Wav | Flac $format = new Mp3)
17 17
     {
18 18
         parent::__construct($name);
19 19
 
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 
22 22
     }
23 23
 
24
-    public static function make(string $name, Mp3|Aac|Wav|Flac $format = new Mp3): self
24
+    public static function make(string $name, Mp3 | Aac | Wav | Flac $format = new Mp3): self
25 25
     {
26 26
         return new self($name, $format);
27 27
     }
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,11 +30,9 @@
 block discarded – undo
30 30
     {
31 31
         if ($this->format instanceof Aac) {
32 32
             return 'aac';
33
-        }
34
-        else if ($this->format instanceof Wav) {
33
+        } else if ($this->format instanceof Wav) {
35 34
             return 'wav';
36
-        }
37
-        else if ($this->format instanceof Flac) {
35
+        } else if ($this->format instanceof Flac) {
38 36
             return 'flac';
39 37
         }
40 38
 
Please login to merge, or discard this patch.
src/Concerns/Storage/UploadEntity/UploadEntityStyle.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
         return $this;
86 86
     }
87 87
 
88
-    public function audio(string $name, Mp3|Aac|Wav|Flac $format = new Mp3): UploadEntities
88
+    public function audio(string $name, Mp3 | Aac | Wav | Flac $format = new Mp3): UploadEntities
89 89
     {
90 90
         $this->audioStyles[$name] = AudioStyle::make($name, $format);
91 91
 
Please login to merge, or discard this patch.
src/Concerns/Storage/Attachment/QueueAttachment.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -25,8 +25,7 @@  discard block
 block discarded – undo
25 25
 
26 26
         if ($this->type == LaruploadFileType::VIDEO) {
27 27
             $this->handleVideoStyles($this->id);
28
-        }
29
-        else if ($this->type == LaruploadFileType::AUDIO) {
28
+        } else if ($this->type == LaruploadFileType::AUDIO) {
30 29
             $this->handleAudioStyles($this->id);
31 30
         }
32 31
 
@@ -44,8 +43,7 @@  discard block
 block discarded – undo
44 43
 
45 44
         if ($maxQueueNum == 0) {
46 45
             $flag = true;
47
-        }
48
-        else {
46
+        } else {
49 47
             $availableQueues = DB::table(Larupload::FFMPEG_QUEUE_TABLE)
50 48
                 ->where('status', 0)
51 49
                 ->count();
@@ -82,8 +80,7 @@  discard block
 block discarded – undo
82 80
 
83 81
 
84 82
             ProcessFFMpeg::dispatch($queueId, $id, $this->name, $class, $serializedClass);
85
-        }
86
-        else {
83
+        } else {
87 84
             throw new HttpResponseException(redirect(URL::previous())->withErrors([
88 85
                 'ffmpeg_queue_max_num' => trans('larupload::messages.max-queue-num-exceeded')
89 86
             ]));
Please login to merge, or discard this patch.