private static function getComposerHome(Composer $composer)
    {
        return null !== $composer->getConfig() && $composer->getConfig()->has('home')
            ? $composer->getConfig()->get('home')
            : '';
    }
private static function getComposerHome(Composer $composer)
    {
        return null !== $composer->getConfig() && $composer->getConfig()->has('home')
            ? $composer->getConfig()->get('home')
            : '';
    }
private static function getComposerHome ( Composer $ composer ) { return null !== $ composer -> getConfig ( ) && $ composer -> getConfig ( ) -> has ( 'home' ) ? $ composer -> getConfig ( ) -> get ( 'home' ) : '' ; }
Get the home directory of composer.

@param Composer $composer The composer

@return string
Get the home directory of composer .