original_string: public static function isValidType($type)
      {
          if ($type === '') {
              $result = true;
          } else {
              $valid = self::getTypesInfo();
              $result = isset($valid[$type]);
          }
  
          return $result;
      }
code: public static function isValidType($type)
      {
          if ($type === '') {
              $result = true;
          } else {
              $valid = self::getTypesInfo();
              $result = isset($valid[$type]);
          }
  
          return $result;
      }
code_tokens: public static function isValidType ( $ type ) { if ( $ type === '' ) { $ result = true ; } else { $ valid = self :: getTypesInfo ( ) ; $ result = isset ( $ valid [ $ type ] ) ; } return $ result ; }
docstring: Check if a term type is valid.
  
  @param string $type
  
  @return bool
docstring_tokens: Check if a term type is valid .