Test Failed
Push — master ( 7e7df5...676302 )
by Mostafa
07:11 queued 03:20
created
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/Validator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -84,17 +84,17 @@
 block discarded – undo
84 84
      * @param int|string $videoBitrate
85 85
      * @throws Exception
86 86
      */
87
-    public static function streamIsValid(int|string $audioBitrate, int|string $videoBitrate): void
87
+    public static function streamIsValid(int | string $audioBitrate, int | string $videoBitrate): void
88 88
     {
89 89
         if (ctype_alnum($name) === false) {
90 90
             throw new Exception('stream name [' . $name . '] should be an alpha numeric string');
91 91
         }
92 92
 
93
-        if($width <= 0) {
93
+        if ($width <= 0) {
94 94
             throw new Exception('width [' . $width . '] should be a positive number');
95 95
         }
96 96
 
97
-        if($height <= 0) {
97
+        if ($height <= 0) {
98 98
             throw new Exception('height [' . $height . '] should be a positive number');
99 99
         }
100 100
 
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/UploadEntities.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -496,7 +496,7 @@  discard block
 block discarded – undo
496 496
      * @return $this
497 497
      * @throws Exception
498 498
      */
499
-    public function stream(string $name, int $width, int $height, int|string $audioBitrate, int|string $videoBitrate): UploadEntities
499
+    public function stream(string $name, int $width, int $height, int | string $audioBitrate, int | string $videoBitrate): UploadEntities
500 500
     {
501 501
         Validator::streamIsValid($audioBitrate, $videoBitrate);
502 502
 
@@ -600,12 +600,12 @@  discard block
 block discarded – undo
600 600
         $unit = substr($number, -1);
601 601
 
602 602
         if (!array_key_exists($unit, $units)) {
603
-            return (int)$number;
603
+            return (int) $number;
604 604
         }
605 605
 
606
-        $number = (float)$number * $units[$unit];
606
+        $number = (float) $number * $units[$unit];
607 607
 
608
-        return (int)$number;
608
+        return (int) $number;
609 609
     }
610 610
 
611 611
     /**
@@ -686,7 +686,7 @@  discard block
 block discarded – undo
686 686
      * @param string $path
687 687
      * @return RedirectResponse|StreamedResponse|Redirector|null
688 688
      */
689
-    protected function storageDownload(string $path): StreamedResponse|RedirectResponse|null
689
+    protected function storageDownload(string $path): StreamedResponse | RedirectResponse | null
690 690
     {
691 691
         if (isset($this->file) and $this->file == LARUPLOAD_NULL) {
692 692
             return null;
@@ -731,7 +731,7 @@  discard block
 block discarded – undo
731 731
      */
732 732
     protected function outputToObject(): object
733 733
     {
734
-        $output = (object)$this->output;
734
+        $output = (object) $this->output;
735 735
 
736 736
         if ($this->camelCaseResponse) {
737 737
             $output->mimeType = $output->mime_type;
Please login to merge, or discard this patch.