public static function isGitClone($path = null)
    {
        if (is_null($path) || empty($path)) {
            return false;
        }
        $dir_path = self::slashDirname($path).'.git';
        return (bool) (file_exists($dir_path) && is_dir($dir_path));
    }
public static function isGitClone($path = null)
    {
        if (is_null($path) || empty($path)) {
            return false;
        }
        $dir_path = self::slashDirname($path).'.git';
        return (bool) (file_exists($dir_path) && is_dir($dir_path));
    }
public static function isGitClone ( $ path = null ) { if ( is_null ( $ path ) || empty ( $ path ) ) { return false ; } $ dir_path = self :: slashDirname ( $ path ) . '.git' ; return ( bool ) ( file_exists ( $ dir_path ) && is_dir ( $ dir_path ) ) ; }
Test if a path seems to be a git clone

@param   string  $path
@return  bool
Test if a path seems to be a git clone