protected static function getInstallDir(Composer $composer, PackageInterface $package, $installDir = null)
    {
        if (null === $installDir) {
            $installDir = rtrim($composer->getConfig()->get('vendor-dir'), '/').'/'.$package->getName();
        }

        return rtrim($installDir, '/');
    }
protected static function getInstallDir(Composer $composer, PackageInterface $package, $installDir = null)
    {
        if (null === $installDir) {
            $installDir = rtrim($composer->getConfig()->get('vendor-dir'), '/').'/'.$package->getName();
        }

        return rtrim($installDir, '/');
    }
protected static function getInstallDir ( Composer $ composer , PackageInterface $ package , $ installDir = null ) { if ( null === $ installDir ) { $ installDir = rtrim ( $ composer -> getConfig ( ) -> get ( 'vendor-dir' ) , '/' ) . '/' . $ package -> getName ( ) ; } return rtrim ( $ installDir , '/' ) ; }
Get the installation directory of the package.

@param Composer         $composer   The composer instance
@param PackageInterface $package    The package instance
@param null|string      $installDir The custom installation directory

@return string The installation directory
Get the installation directory of the package .