Test Failed
Pull Request — master (#7)
by Mostafa
04:03
created
src/Storage/FFMpeg.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -122,15 +122,15 @@
 block discarded – undo
122 122
 
123 123
                     foreach ($output->streams as $stream) {
124 124
                         if (isset($stream->width)) {
125
-                            $meta['width'] = (int)$stream->width;
125
+                            $meta['width'] = (int) $stream->width;
126 126
                         }
127 127
 
128 128
                         if (isset($stream->height)) {
129
-                            $meta['height'] = (int)$stream->height;
129
+                            $meta['height'] = (int) $stream->height;
130 130
                         }
131 131
 
132 132
                         if (isset($stream->duration)) {
133
-                            $meta['duration'] = (int)$stream->duration;
133
+                            $meta['duration'] = (int) $stream->duration;
134 134
                         }
135 135
 
136 136
                         if (isset($stream->tags->rotate)) {
Please login to merge, or discard this patch.
src/Storage/Image.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -92,8 +92,8 @@
 block discarded – undo
92 92
         $size = $this->image->getSize();
93 93
 
94 94
         return [
95
-            'width'  => (int)$size->getWidth(),
96
-            'height' => (int)$size->getHeight(),
95
+            'width'  => (int) $size->getWidth(),
96
+            'height' => (int) $size->getHeight(),
97 97
         ];
98 98
     }
99 99
 
Please login to merge, or discard this patch.
src/Storage/Attachment.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
      * @param string $style
167 167
      * @return RedirectResponse|StreamedResponse|null
168 168
      */
169
-    public function download(string $style = 'original'): StreamedResponse|RedirectResponse|null
169
+    public function download(string $style = 'original'): StreamedResponse | RedirectResponse | null
170 170
     {
171 171
         $path = $this->prepareStylePath($style);
172 172
 
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
      * @param string|null $key
184 184
      * @return object|string|integer|null
185 185
      */
186
-    public function meta(string $key = null): object|int|string|null
186
+    public function meta(string $key = null): object | int | string | null
187 187
     {
188 188
         if ($key) {
189 189
             $meta = $this->output;
Please login to merge, or discard this patch.
src/Helpers/LaraStandalone.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      * @throws Exception
34 34
      * @internal
35 35
      */
36
-    public function meta(string $key = null): object|int|string|null
36
+    public function meta(string $key = null): object | int | string | null
37 37
     {
38 38
         if ($this->internalFunctionIsCallable) {
39 39
             return parent::meta($key);
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
      * @throws Exception
142 142
      * @internal
143 143
      */
144
-    public function download(string $style = 'original'): StreamedResponse|RedirectResponse|null
144
+    public function download(string $style = 'original'): StreamedResponse | RedirectResponse | null
145 145
     {
146 146
         self::internalException();
147 147
     }
Please login to merge, or discard this patch.
src/Helpers/Validator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -87,17 +87,17 @@
 block discarded – undo
87 87
      * @param int|string $videoBitrate
88 88
      * @throws Exception
89 89
      */
90
-    public static function streamIsValid(string $name, int $width, int $height, int|string $audioBitrate, int|string $videoBitrate): void
90
+    public static function streamIsValid(string $name, int $width, int $height, int | string $audioBitrate, int | string $videoBitrate): void
91 91
     {
92 92
         if (ctype_alnum($name) === false) {
93 93
             throw new Exception('stream name [' . $name . '] should be an alpha numeric string');
94 94
         }
95 95
 
96
-        if($width <= 0) {
96
+        if ($width <= 0) {
97 97
             throw new Exception('width [' . $width . '] should be a positive number');
98 98
         }
99 99
 
100
-        if($height <= 0) {
100
+        if ($height <= 0) {
101 101
             throw new Exception('height [' . $height . '] should be a positive number');
102 102
         }
103 103
 
Please login to merge, or discard this patch.
src/UploadEntities.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -495,7 +495,7 @@  discard block
 block discarded – undo
495 495
      * @return $this
496 496
      * @throws Exception
497 497
      */
498
-    public function stream(string $name, int $width, int $height, int|string $audioBitrate, int|string $videoBitrate): UploadEntities
498
+    public function stream(string $name, int $width, int $height, int | string $audioBitrate, int | string $videoBitrate): UploadEntities
499 499
     {
500 500
         Validator::streamIsValid($name, $width, $height, $audioBitrate, $videoBitrate);
501 501
 
@@ -599,12 +599,12 @@  discard block
 block discarded – undo
599 599
         $unit = substr($number, -1);
600 600
 
601 601
         if (!array_key_exists($unit, $units)) {
602
-            return (int)$number;
602
+            return (int) $number;
603 603
         }
604 604
 
605
-        $number = (float)$number * $units[$unit];
605
+        $number = (float) $number * $units[$unit];
606 606
 
607
-        return (int)$number;
607
+        return (int) $number;
608 608
     }
609 609
 
610 610
     /**
@@ -685,7 +685,7 @@  discard block
 block discarded – undo
685 685
      * @param string $path
686 686
      * @return StreamedResponse|RedirectResponse|null
687 687
      */
688
-    protected function storageDownload(string $path): StreamedResponse|RedirectResponse|null
688
+    protected function storageDownload(string $path): StreamedResponse | RedirectResponse | null
689 689
     {
690 690
         if (isset($this->file) and $this->file == LARUPLOAD_NULL) {
691 691
             return null;
@@ -730,7 +730,7 @@  discard block
 block discarded – undo
730 730
      */
731 731
     protected function outputToObject(): object
732 732
     {
733
-        $output = (object)$this->output;
733
+        $output = (object) $this->output;
734 734
 
735 735
         if ($this->camelCaseResponse) {
736 736
             $output->mimeType = $output->mime_type;
Please login to merge, or discard this patch.