original_string: public static function isDefaultPort(UriInterface $uri): bool
      {
          return $uri->getPort() === null
              || (isset(self::$defaultPorts[$uri->getScheme()]) && $uri->getPort() === self::$defaultPorts[$uri->getScheme()]);
      }
code: public static function isDefaultPort(UriInterface $uri): bool
      {
          return $uri->getPort() === null
              || (isset(self::$defaultPorts[$uri->getScheme()]) && $uri->getPort() === self::$defaultPorts[$uri->getScheme()]);
      }
code_tokens: public static function isDefaultPort ( UriInterface $ uri ) : bool { return $ uri -> getPort ( ) === null || ( isset ( self :: $ defaultPorts [ $ uri -> getScheme ( ) ] ) && $ uri -> getPort ( ) === self :: $ defaultPorts [ $ uri -> getScheme ( ) ] ) ; }
docstring: Whether the URI has the default port of the current scheme.
  
  `Psr\Http\Message\UriInterface::getPort` may return null or the standard port. This method can be used
  independently of the implementation.
  
  @param UriInterface $uri
  
  @return bool
docstring_tokens: Whether the URI has the default port of the current scheme .