public function getValidationRules()
    {
        $rules = [];

        foreach ($this->rules as $name => $rule) {
            $ruleName         = sprintf('2fa.*.settings.%s', $name);
            $rules[$ruleName] = $rule;
        }

        return $rules;
    }
public function getValidationRules()
    {
        $rules = [];

        foreach ($this->rules as $name => $rule) {
            $ruleName         = sprintf('2fa.*.settings.%s', $name);
            $rules[$ruleName] = $rule;
        }

        return $rules;
    }
public function getValidationRules ( ) { $ rules = [ ] ; foreach ( $ this -> rules as $ name => $ rule ) { $ ruleName = sprintf ( '2fa.*.settings.%s' , $ name ) ; $ rules [ $ ruleName ] = $ rule ; } return $ rules ; }
Returns the validation rules.

@return array
Returns the validation rules .