public function getStandardPort()
    {
        $scheme = $this->getScheme();

        if (isset(self::$standardPorts[$scheme])) {
            return self::$standardPorts[$scheme];
        }

        return null;
    }
public function getStandardPort()
    {
        $scheme = $this->getScheme();

        if (isset(self::$standardPorts[$scheme])) {
            return self::$standardPorts[$scheme];
        }

        return null;
    }
public function getStandardPort ( ) { $ scheme = $ this -> getScheme ( ) ; if ( isset ( self :: $ standardPorts [ $ scheme ] ) ) { return self :: $ standardPorts [ $ scheme ] ; } return null ; }
Returns the standard port for the current scheme.

The known ports are:

- ftp : 21
- http : 80
- https : 443

@return int|null The standard port for the current scheme or null if not known
Returns the standard port for the current scheme .