src/Joomlatools/Console/Command/Site/Configure.php
protected function getDefaultPort()
    {
	    $driver = $this->mysql->driver;
	    $key    = $driver . '.default_port';
	    $port   = ini_get($key);

	    if ($port) {
	    	return $port;
	    }

	    return ini_get('mysqli.default_port');
    }
protected function getDefaultPort()
    {
	    $driver = $this->mysql->driver;
	    $key    = $driver . '.default_port';
	    $port   = ini_get($key);

	    if ($port) {
	    	return $port;
	    }

	    return ini_get('mysqli.default_port');
    }
protected function getDefaultPort ( ) { $ driver = $ this -> mysql -> driver ; $ key = $ driver . '.default_port' ; $ port = ini_get ( $ key ) ; if ( $ port ) { return $ port ; } return ini_get ( 'mysqli.default_port' ) ; }
Get default port for MySQL

@return string
Get default port for MySQL