original_string: protected function validate_point($val) {
          if (empty($val)) {
              return false;
          }
          $maxgrade = (int)get_config('core', 'gradepointmax');
          $isintlike = ((string)(int)$val === $val) ? true : false;
          return ($isintlike === true && $val > 0 && $val <= $maxgrade) ? true : false;
      }
code: protected function validate_point($val) {
          if (empty($val)) {
              return false;
          }
          $maxgrade = (int)get_config('core', 'gradepointmax');
          $isintlike = ((string)(int)$val === $val) ? true : false;
          return ($isintlike === true && $val > 0 && $val <= $maxgrade) ? true : false;
      }
code_tokens: protected function validate_point ( $ val ) { if ( empty ( $ val ) ) { return false ; } $ maxgrade = ( int ) get_config ( 'core' , 'gradepointmax' ) ; $ isintlike = ( ( string ) ( int ) $ val === $ val ) ? true : false ; return ( $ isintlike === true && $ val > 0 && $ val <= $ maxgrade ) ? true : false ; }
docstring: Determines whether a given value is a valid point selection.
  
  @param string|int $val The value to test.
  @return bool Valid or invalid
docstring_tokens: Determines whether a given value is a valid point selection .