original_string: public static function toUrl(string $url, string $scheme = 'http://'): string
      {
          $http = preg_match('/^http[s]?:\/\//', $url);
          return (!$http ? $scheme : '') . $url;
      }
code: public static function toUrl(string $url, string $scheme = 'http://'): string
      {
          $http = preg_match('/^http[s]?:\/\//', $url);
          return (!$http ? $scheme : '') . $url;
      }
code_tokens: public static function toUrl ( string $ url , string $ scheme = 'http://' ) : string { $ http = preg_match ( '/^http[s]?:\/\//' , $ url ) ; return ( ! $ http ? $ scheme : '' ) . $ url ; }
docstring: To url.
  
  @param string $url
  @param string $scheme
  @return string
docstring_tokens: To url .