Skip to content

Commit

Permalink
修复注释
Browse files Browse the repository at this point in the history
  • Loading branch information
gitHusband committed Oct 29, 2023
1 parent b8dc8be commit 412562f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/Validation.php
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,7 @@ protected function parse_error_message($error_msg)
* @param array &$parse_arr [description]
* @param string $string [description]
* @param string $type [description]
* @return [type] [description]
* @return bool [description]
*/
protected function pars_gh_string_to_array(&$parse_arr, $string, $type = "key")
{
Expand Down Expand Up @@ -899,7 +899,7 @@ protected function pars_gh_string_to_array(&$parse_arr, $string, $type = "key")
* @param array $rule_error_msg Parsed error message array
* @param string $tag
* @param bool|boolean $only_user_err_msg if can not find error message from user error message, will try to find it from error template
* @return [type] [description]
* @return string
*/
protected function match_error_message($rule_error_msg, $tag, $only_user_err_msg = false)
{
Expand Down Expand Up @@ -1278,11 +1278,11 @@ protected function r_unset(&$data, $field, $force=true)
* error template message
* @Author Devin
* @param string $tag
* @return [type]
* @return string
*/
public function get_error_template($tag = '')
{
return ($tag == '' || !isset($this->error_template[$tag])) ? false : $this->error_template[$tag];
return ($tag == '' || !isset($this->error_template[$tag])) ? '' : $this->error_template[$tag];
}

/**
Expand Down Expand Up @@ -1363,7 +1363,7 @@ protected function set_error($field = '', $message = '', $is_or_rule=false)
* Get error message
* @Author Devin
* @param boolean $fromat [description]
* @return [type] [description]
* @return array [description]
*/
public function get_error($standard=true, $simple=true)
{
Expand All @@ -1381,20 +1381,20 @@ public function get_error($standard=true, $simple=true)
* If set to true, replace field value to "true" if it's valid, replace field value to error_message if it's invalid.
* If set to false, don't replace field value if it's valid, replace field value to error_message if it's invalid.
* @Author Devin
* @param [type] $bool [description]
* @param bool $result_classic [description]
*/
public function set_result_classic($bool)
public function set_result_classic($result_classic)
{
$this->result_classic = $bool;
$this->result_classic = $result_classic;
}

/**
* Set result
* If set to true, replace field value to "true" if it's valid, replace field value to error_message if it's invalid.
* If set to false, don't replace field value if it's valid, replace field value to error_message if it's invalid.
* @Author Devin
* @param [type] $field [description]
* @param [type] $result [description]
* @param string $field [description]
* @param bool $result [description]
*/
protected function set_result($field, $result)
{
Expand Down

0 comments on commit 412562f

Please sign in to comment.