src/Reform/Validation/Validator.php
protected function submitted($value)
    {
        if (is_string($value)) {
            $value = trim($value);
        }
        if (empty($value) && !is_numeric($value)) {
            return false;
        }

        return true;
    }
protected function submitted($value)
    {
        if (is_string($value)) {
            $value = trim($value);
        }
        if (empty($value) && !is_numeric($value)) {
            return false;
        }

        return true;
    }
protected function submitted ( $ value ) { if ( is_string ( $ value ) ) { $ value = trim ( $ value ) ; } if ( empty ( $ value ) && ! is_numeric ( $ value ) ) { return false ; } return true ; }
Check if a value has been submitted. This means not empty or
containing only white space.
Check if a value has been submitted . This means not empty or containing only white space .