Passed
Push — develop ( 4bd546...1b3676 )
by nguereza
10:36
created
src/Util/Helper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@
 block discarded – undo
141 141
             $value = floatval($matches['size']);
142 142
         }
143 143
 
144
-        return (int)($value * pow(1024, $units[$unit]));
144
+        return (int) ($value * pow(1024, $units[$unit]));
145 145
     }
146 146
 
147 147
     /**
Please login to merge, or discard this patch.
src/Upload.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
      * The uploaded file information
103 103
      * @var UploadFileInfo|array<int, UploadFileInfo>|bool
104 104
      */
105
-    protected UploadFileInfo|array|bool $uploadInfo = false;
105
+    protected UploadFileInfo | array | bool $uploadInfo = false;
106 106
 
107 107
     /**
108 108
      * Create new instance
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
      * Return the uploaded file information
245 245
      * @return UploadFileInfo|array<int, UploadFileInfo>|bool
246 246
      */
247
-    public function getInfo(): UploadFileInfo|array|bool
247
+    public function getInfo(): UploadFileInfo | array | bool
248 248
     {
249 249
         return $this->uploadInfo;
250 250
     }
Please login to merge, or discard this patch.
src/Validator/Rule/Extension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
      * @param array<int, string>|string $extensions
79 79
      * @param bool $exclude
80 80
      */
81
-    public function __construct(array|string $extensions, bool $exclude = false)
81
+    public function __construct(array | string $extensions, bool $exclude = false)
82 82
     {
83 83
         if (!is_array($extensions)) {
84 84
             $extensions = [$extensions];
Please login to merge, or discard this patch.
src/Validator/Rule/MimeType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
      * Create new instance
72 72
      * @param array<int, string>|string $mimeType
73 73
      */
74
-    public function __construct(array|string $mimeType)
74
+    public function __construct(array | string $mimeType)
75 75
     {
76 76
         if (!is_array($mimeType)) {
77 77
             $mimeType = [$mimeType];
Please login to merge, or discard this patch.
src/Validator/Rule/Size.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
      * Create new instance
73 73
      * @param int|string $size
74 74
      */
75
-    public function __construct(int|string $size)
75
+    public function __construct(int | string $size)
76 76
     {
77 77
         if (is_int($size) === false) {
78 78
             $size = Helper::sizeInBytes($size);
Please login to merge, or discard this patch.