src/Settings/Rules/RuleValidator.php
protected function buildArgumentArray($rule, $value)
    {
        $argumentString = explode('=', $rule);

        $arguments = [$value];

        if (isset($argumentString[1])) {
            return array_merge($arguments, explode(',', $argumentString[1]));
        }

        return $arguments;
    }
protected function buildArgumentArray($rule, $value)
    {
        $argumentString = explode('=', $rule);

        $arguments = [$value];

        if (isset($argumentString[1])) {
            return array_merge($arguments, explode(',', $argumentString[1]));
        }

        return $arguments;
    }
protected function buildArgumentArray ( $ rule , $ value ) { $ argumentString = explode ( '=' , $ rule ) ; $ arguments = [ $ value ] ; if ( isset ( $ argumentString [ 1 ] ) ) { return array_merge ( $ arguments , explode ( ',' , $ argumentString [ 1 ] ) ) ; } return $ arguments ; }
Build argument array from rule and value.

@param string $rule
@param mixed  $value

@return array
Build argument array from rule and value .