Passed
Push — develop ( 3dc6e9...49b9f7 )
by nguereza
10:46
created
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|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|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/MimeType.php 2 patches
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 array<int, string>|string $mimeTypes
74 74
      */
75
-    public function __construct(array|string $mimeTypes)
75
+    public function __construct(array | string $mimeTypes)
76 76
     {
77 77
         $this->mimeTypes = Arr::wrap($mimeTypes);
78 78
     }
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -60,8 +60,7 @@  discard block
 block discarded – undo
60 60
  * @class MimeType
61 61
  * @package Platine\Upload\Validator\Rule
62 62
  */
63
-class MimeType implements RuleInterface
64
-{
63
+class MimeType implements RuleInterface {
65 64
     /**
66 65
      * The list of allowed uploaded file mime type
67 66
      * @var array<int, string>
@@ -72,8 +71,7 @@  discard block
 block discarded – undo
72 71
      * Create new instance
73 72
      * @param array<int, string>|string $mimeTypes
74 73
      */
75
-    public function __construct(array|string $mimeTypes)
76
-    {
74
+    public function __construct(array|string $mimeTypes) {
77 75
         $this->mimeTypes = Arr::wrap($mimeTypes);
78 76
     }
79 77
 
Please login to merge, or discard this patch.
src/Validator/Rule/Extension.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
      * @param array<int, string>|string $extensions
80 80
      * @param bool $exclude
81 81
      */
82
-    public function __construct(array|string $extensions, bool $exclude = false)
82
+    public function __construct(array | string $extensions, bool $exclude = false)
83 83
     {
84 84
         $this->extensions = Arr::wrap($extensions);
85 85
         $this->exclude = $exclude;
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -60,8 +60,7 @@  discard block
 block discarded – undo
60 60
  * @class Extension
61 61
  * @package Platine\Upload\Validator\Rule
62 62
  */
63
-class Extension implements RuleInterface
64
-{
63
+class Extension implements RuleInterface {
65 64
     /**
66 65
      * The list of allowed/forbidden extensions
67 66
      * @var array<int, string>
@@ -79,8 +78,7 @@  discard block
 block discarded – undo
79 78
      * @param array<int, string>|string $extensions
80 79
      * @param bool $exclude
81 80
      */
82
-    public function __construct(array|string $extensions, bool $exclude = false)
83
-    {
81
+    public function __construct(array|string $extensions, bool $exclude = false) {
84 82
         $this->extensions = Arr::wrap($extensions);
85 83
         $this->exclude = $exclude;
86 84
     }
Please login to merge, or discard this patch.