@@ -13,7 +13,7 @@ class TypeParser implements RuleParser
1313{
1414 public function __invoke (string $ attribute , FluentSchema $ schema , array $ validationRules , array $ nestedRuleset ): array |FluentSchema |null
1515 {
16- foreach ($ validationRules as $ ruleArgs ) {
16+ foreach ($ validationRules as $ ruleArgs ) {
1717 [$ rule , $ args ] = $ ruleArgs ;
1818
1919 $ ruleName = is_object ($ rule ) ? get_class ($ rule ) : $ rule ;
@@ -57,7 +57,7 @@ protected function parseInRule(FluentSchema $schema, mixed $ruleName, ?array $ar
5757 $ values = null ;
5858
5959 if (is_string ($ ruleName )) {
60- $ values = array_map (function (mixed $ value ) {
60+ $ values = array_map (function (mixed $ value ) {
6161 if (is_numeric ($ value )) {
6262 if (ctype_digit ($ value )) {
6363 return intval ($ value );
@@ -72,15 +72,15 @@ protected function parseInRule(FluentSchema $schema, mixed $ruleName, ?array $ar
7272 $ values = invade ($ ruleName )->values ; /** @phpstan-ignore property.protected */
7373 }
7474
75- if (!$ values ) {
75+ if (! $ values ) {
7676 return ;
7777 }
7878
7979 $ isString = true ;
8080 $ isInt = true ;
8181 $ isNumeric = true ;
8282
83- foreach ($ values as $ value ) {
83+ foreach ($ values as $ value ) {
8484 if (is_string ($ value )) {
8585 $ isInt = false ;
8686 $ isNumeric = false ;
@@ -110,8 +110,7 @@ protected function parseInRule(FluentSchema $schema, mixed $ruleName, ?array $ar
110110
111111 protected function parseEnumRule (FluentSchema $ schema , EnumRule $ rule ): void
112112 {
113- $ enumType = invade ($ rule )->type ; /** @phpstan-ignore property.protected */
114-
113+ $ enumType = invade ($ rule )->type ; /** @phpstan-ignore property.protected */
115114 $ reflection = new ReflectionClass ($ enumType );
116115
117116 if (
0 commit comments