private function isConfigFileNotConfiguredOrMissing($shopConfigFileName)
    {
        if (!file_exists($shopConfigFileName)) {
            return true;
        }

        $shopConfigFileContents = file_get_contents($shopConfigFileName);
        $wordsIndicatingNotConfigured = [
            '<dbHost>',
            '<dbName>',
            '<dbUser>',
            '<dbPwd>',
            '<sShopURL>',
            '<sShopDir>',
            '<sCompileDir>',
        ];

        foreach ($wordsIndicatingNotConfigured as $word) {
            if (strpos($shopConfigFileContents, $word) !== false) {
                return true;
            }
        }

        return false;
    }
private function isConfigFileNotConfiguredOrMissing($shopConfigFileName)
    {
        if (!file_exists($shopConfigFileName)) {
            return true;
        }

        $shopConfigFileContents = file_get_contents($shopConfigFileName);
        $wordsIndicatingNotConfigured = [
            '<dbHost>',
            '<dbName>',
            '<dbUser>',
            '<dbPwd>',
            '<sShopURL>',
            '<sShopDir>',
            '<sCompileDir>',
        ];

        foreach ($wordsIndicatingNotConfigured as $word) {
            if (strpos($shopConfigFileContents, $word) !== false) {
                return true;
            }
        }

        return false;
    }
private function isConfigFileNotConfiguredOrMissing ( $ shopConfigFileName ) { if ( ! file_exists ( $ shopConfigFileName ) ) { return true ; } $ shopConfigFileContents = file_get_contents ( $ shopConfigFileName ) ; $ wordsIndicatingNotConfigured = [ '<dbHost>' , '<dbName>' , '<dbUser>' , '<dbPwd>' , '<sShopURL>' , '<sShopDir>' , '<sCompileDir>' , ] ; foreach ( $ wordsIndicatingNotConfigured as $ word ) { if ( strpos ( $ shopConfigFileContents , $ word ) !== false ) { return true ; } } return false ; }
Return true if config file is not configured or missing.

@param string $shopConfigFileName Absolute path to shop configuration file to check.

@return bool
Return true if config file is not configured or missing .