Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
delete files['php/php-fpm'];
delete files['php/php-fpm.ini'];
} else if (mode === 'fpm') {
delete files['php/php'];
delete files['php/php-cgi'];
} else if (mode === 'cli') {
delete files['php/php-cgi'];
delete files['php/php-fpm'];
delete files['php/php-fpm.ini'];
} else if (mode === 'cgi') {
delete files['php/php'];
delete files['php/php-fpm'];
delete files['php/php-fpm.ini'];
} else {
throw new Error(`Invalid config.mode "${config.mode}" given. Supported modes are server|cgi|cli|fpm.`);
}
return files;
}