@@ -52,6 +52,6 @@ |
||
| 52 | 52 | // $value = idn_to_ascii($value); |
| 53 | 53 | // } |
| 54 | 54 | |
| 55 | - return (bool)filter_var($value, \FILTER_VALIDATE_EMAIL); |
|
| 55 | + return (bool) filter_var($value, \FILTER_VALIDATE_EMAIL); |
|
| 56 | 56 | } |
| 57 | 57 | } |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | * @noinspection PhpMissingParamTypeInspection |
| 129 | 129 | * @noinspection PhpUnusedPrivateMethodInspection |
| 130 | 130 | */ |
| 131 | - private function checkMaxsize($value, int|array|string $ruleOpts, Ruleable $element): bool |
|
| 131 | + private function checkMaxsize($value, int | array | string $ruleOpts, Ruleable $element): bool |
|
| 132 | 132 | { |
| 133 | 133 | if ($value === false) { |
| 134 | 134 | return true; |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | * @noinspection PhpMissingParamTypeInspection |
| 161 | 161 | * @noinspection PhpUnusedPrivateMethodInspection |
| 162 | 162 | */ |
| 163 | - private function checkExtensions($value, string|array $ruleOpts, Ruleable $element): bool |
|
| 163 | + private function checkExtensions($value, string | array $ruleOpts, Ruleable $element): bool |
|
| 164 | 164 | { |
| 165 | 165 | if ($value === false) { |
| 166 | 166 | return true; |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | private function parseRuleOpts(mixed $opts): array |
| 190 | 190 | { |
| 191 | 191 | if (!is_array($opts)) { |
| 192 | - $opts = (array)$opts; |
|
| 192 | + $opts = (array) $opts; |
|
| 193 | 193 | $opts[1] = null; |
| 194 | 194 | } |
| 195 | 195 | list($param, $message) = $opts; |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | |
| 38 | 38 | $this->setAttributes( |
| 39 | 39 | AttributeFactory::createFromArray([ |
| 40 | - 'id' => ((string)self::$prefix_id) . $this->originalName, |
|
| 40 | + 'id' => ((string) self::$prefix_id) . $this->originalName, |
|
| 41 | 41 | 'value' => $this->originalName, |
| 42 | 42 | ]) |
| 43 | 43 | ); |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | |
| 37 | 37 | $this->setAttributes( |
| 38 | 38 | AttributeFactory::createFromArray([ |
| 39 | - 'id' => ((string)self::$prefix_id) . $this->originalName, |
|
| 39 | + 'id' => ((string) self::$prefix_id) . $this->originalName, |
|
| 40 | 40 | 'value' => $name, |
| 41 | 41 | ]) |
| 42 | 42 | ); |