@@ -68,8 +68,8 @@ protected static function evaluateRuleConditions(Forms\Get $get, array $conditio
6868 return true ;
6969 }
7070
71- return $ logic === 'AND '
72- ? !in_array (false , $ results , true ) // All must be true
71+ return $ logic === 'AND '
72+ ? ! in_array (false , $ results , true ) // All must be true
7373 : in_array (true , $ results , true ); // At least one must be true
7474 }
7575
@@ -113,21 +113,23 @@ protected static function evaluateCondition($fieldValue, string $operator, $expe
113113 return is_numeric ($ fieldValue ) && is_numeric ($ expectedValue ) && $ fieldValue <= $ expectedValue ;
114114
115115 case 'in ' :
116- if (!is_string ($ expectedValue )) {
116+ if (! is_string ($ expectedValue )) {
117117 return false ;
118118 }
119119 $ allowedValues = array_map ('trim ' , explode (', ' , $ expectedValue ));
120+
120121 return in_array ($ fieldValue , $ allowedValues );
121122
122123 case 'not_in ' :
123- if (!is_string ($ expectedValue )) {
124+ if (! is_string ($ expectedValue )) {
124125 return true ;
125126 }
126127 $ excludedValues = array_map ('trim ' , explode (', ' , $ expectedValue ));
127- return !in_array ($ fieldValue , $ excludedValues );
128+
129+ return ! in_array ($ fieldValue , $ excludedValues );
128130
129131 default :
130132 return false ;
131133 }
132134 }
133- }
135+ }
0 commit comments