source/Core/Module/ModuleList.php
protected function _isVendorDir($sModuleDir)
    {
        if (!is_dir($sModuleDir)) {
            return false;
        }

        $currentDirectoryContents = scandir($sModuleDir);
        $currentDirectoryContents = array_diff($currentDirectoryContents, ['.', '..']);
        foreach ($currentDirectoryContents as $entry) {
            if (is_dir("$sModuleDir/$entry") && file_exists("$sModuleDir/$entry/metadata.php")) {
                return true;
            }
        }

        return false;
    }
protected function _isVendorDir($sModuleDir)
    {
        if (!is_dir($sModuleDir)) {
            return false;
        }

        $currentDirectoryContents = scandir($sModuleDir);
        $currentDirectoryContents = array_diff($currentDirectoryContents, ['.', '..']);
        foreach ($currentDirectoryContents as $entry) {
            if (is_dir("$sModuleDir/$entry") && file_exists("$sModuleDir/$entry/metadata.php")) {
                return true;
            }
        }

        return false;
    }
protected function _isVendorDir ( $ sModuleDir ) { if ( ! is_dir ( $ sModuleDir ) ) { return false ; } $ currentDirectoryContents = scandir ( $ sModuleDir ) ; $ currentDirectoryContents = array_diff ( $ currentDirectoryContents , [ '.' , '..' ] ) ; foreach ( $ currentDirectoryContents as $ entry ) { if ( is_dir ( "$sModuleDir/$entry" ) && file_exists ( "$sModuleDir/$entry/metadata.php" ) ) { return true ; } } return false ; }
Checks if directory is vendor directory.

@param string $sModuleDir dir path

@return bool
Checks if directory is vendor directory .