Passed
Push — 5.x ( fdc2ab...368a22 )
by Enjoys
02:42
created
src/Rule/Upload.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         return true;
33 33
     }
34 34
 
35
-    private function check(UploadedFileInterface|false $value, Ruleable $element): bool
35
+    private function check(UploadedFileInterface | false $value, Ruleable $element): bool
36 36
     {
37 37
         foreach ($this->getParams() as $rule => $options) {
38 38
 
Please login to merge, or discard this patch.
src/Rule/UploadCheck/ExtensionsCheck.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -14,11 +14,11 @@  discard block
 block discarded – undo
14 14
 {
15 15
 
16 16
 
17
-    private UploadedFileInterface|false $value;
17
+    private UploadedFileInterface | false $value;
18 18
     private Ruleable $element;
19
-    private array|string $options;
19
+    private array | string $options;
20 20
 
21
-    public function __construct(false|UploadedFileInterface $value, Ruleable $element, array|string $options)
21
+    public function __construct(false | UploadedFileInterface $value, Ruleable $element, array | string $options)
22 22
     {
23 23
         $this->value = $value;
24 24
         $this->element = $element;
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 
34 34
         $parsed = $this->parseOptions($this->options);
35 35
 
36
-        Assert::string( $parsed['param']);
36
+        Assert::string($parsed['param']);
37 37
         $expected_extensions = \array_map('trim', \explode(",", $parsed['param']));
38 38
 
39 39
         $message = $parsed['message'];
@@ -52,10 +52,10 @@  discard block
 block discarded – undo
52 52
         return true;
53 53
     }
54 54
 
55
-    private function parseOptions(int|array|string $opts): array
55
+    private function parseOptions(int | array | string $opts): array
56 56
     {
57 57
         if (!is_array($opts)) {
58
-            $opts = (array)$opts;
58
+            $opts = (array) $opts;
59 59
             $opts[1] = null;
60 60
         }
61 61
         list($param, $message) = $opts;
Please login to merge, or discard this patch.
src/Rule/UploadCheck/RequiredCheck.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,11 +13,11 @@
 block discarded – undo
13 13
 {
14 14
 
15 15
 
16
-    private UploadedFileInterface|false $value;
16
+    private UploadedFileInterface | false $value;
17 17
     private Ruleable $element;
18 18
     private ?string $message;
19 19
 
20
-    public function __construct(false|UploadedFileInterface $value, Ruleable $element, string $message = null)
20
+    public function __construct(false | UploadedFileInterface $value, Ruleable $element, string $message = null)
21 21
     {
22 22
         $this->value = $value;
23 23
         $this->element = $element;
Please login to merge, or discard this patch.
src/Rule/UploadCheck/MaxsizeCheck.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,11 +15,11 @@  discard block
 block discarded – undo
15 15
 {
16 16
 
17 17
 
18
-    private UploadedFileInterface|false $value;
18
+    private UploadedFileInterface | false $value;
19 19
     private Ruleable $element;
20
-    private int|array|string $options;
20
+    private int | array | string $options;
21 21
 
22
-    public function __construct(false|UploadedFileInterface $value, Ruleable $element, int|array|string $options)
22
+    public function __construct(false | UploadedFileInterface $value, Ruleable $element, int | array | string $options)
23 23
     {
24 24
         $this->value = $value;
25 25
         $this->element = $element;
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
         $parsed = $this->parseOptions($this->options);
36 36
 
37
-        $threshold_size =  $parsed['param'];
37
+        $threshold_size = $parsed['param'];
38 38
 
39 39
         $message = $parsed['message'];
40 40
 
@@ -52,10 +52,10 @@  discard block
 block discarded – undo
52 52
         return true;
53 53
     }
54 54
 
55
-    private function parseOptions(int|array|string $opts): array
55
+    private function parseOptions(int | array | string $opts): array
56 56
     {
57 57
         if (!is_array($opts)) {
58
-            $opts = (array)$opts;
58
+            $opts = (array) $opts;
59 59
             $opts[1] = null;
60 60
         }
61 61
         list($param, $message) = $opts;
Please login to merge, or discard this patch.
src/Rule/UploadCheck/SystemCheck.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,11 +13,11 @@
 block discarded – undo
13 13
 {
14 14
 
15 15
 
16
-    private UploadedFileInterface|false $value;
16
+    private UploadedFileInterface | false $value;
17 17
     private Ruleable $element;
18 18
     private ?string $message;
19 19
 
20
-    public function __construct(false|UploadedFileInterface $value, Ruleable $element, string $message = null)
20
+    public function __construct(false | UploadedFileInterface $value, Ruleable $element, string $message = null)
21 21
     {
22 22
         $this->value = $value;
23 23
         $this->element = $element;
Please login to merge, or discard this patch.