@@ -32,7 +32,7 @@ |
||
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 |
@@ -14,11 +14,11 @@ discard block |
||
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 |
||
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 |
||
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; |
@@ -13,11 +13,11 @@ |
||
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; |
@@ -15,11 +15,11 @@ discard block |
||
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 |
||
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 |
||
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; |
@@ -13,11 +13,11 @@ |
||
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; |