original_string: public static function getDefaultVersion($module = null) {
      $req = new GetDefaultVersionRequest();
      $resp = new GetDefaultVersionResponse();
  
      if ($module !== null) {
        if (!is_string($module)) {
          throw new \InvalidArgumentException(
              '$module must be a string. Actual type: ' . gettype($module));
        }
        $req->setModule($module);
      }
  
      try {
        ApiProxy::makeSyncCall('modules', 'GetDefaultVersion', $req, $resp);
      } catch (ApplicationError $e) {
        throw errorCodeToException($e->getApplicationError());
      }
      return $resp->getVersion();
    }
code: public static function getDefaultVersion($module = null) {
      $req = new GetDefaultVersionRequest();
      $resp = new GetDefaultVersionResponse();
  
      if ($module !== null) {
        if (!is_string($module)) {
          throw new \InvalidArgumentException(
              '$module must be a string. Actual type: ' . gettype($module));
        }
        $req->setModule($module);
      }
  
      try {
        ApiProxy::makeSyncCall('modules', 'GetDefaultVersion', $req, $resp);
      } catch (ApplicationError $e) {
        throw errorCodeToException($e->getApplicationError());
      }
      return $resp->getVersion();
    }
code_tokens: public static function getDefaultVersion ( $ module = null ) { $ req = new GetDefaultVersionRequest ( ) ; $ resp = new GetDefaultVersionResponse ( ) ; if ( $ module !== null ) { if ( ! is_string ( $ module ) ) { throw new \ InvalidArgumentException ( '$module must be a string. Actual type: ' . gettype ( $ module ) ) ; } $ req -> setModule ( $ module ) ; } try { ApiProxy :: makeSyncCall ( 'modules' , 'GetDefaultVersion' , $ req , $ resp ) ; } catch ( ApplicationError $ e ) { throw errorCodeToException ( $ e -> getApplicationError ( ) ) ; } return $ resp -> getVersion ( ) ; }
docstring: Get the default version of a module.
  
  @param string $module The name of the module to retrieve the default
  versions for. If null then the default versions for the current module
  will be retrieved.
  
  @return string The default version of the module.
  
  @throws \InvalidArgumentException If $module is not a string.
  @throws ModulesException If the given $module is invalid or if no default
  version could be found.
docstring_tokens: Get the default version of a module .