/**
* Helper function which checks if the passed template
* or the inheritance templates has configuration sets.
*/ privatefunctionhasTemplateConfigSet(Template $template): bool { $theme = $this->get(Util::class)->getThemeByTemplate($template);
/**
* Iterates all files of the provided zip archive
* path and validates the plugin namespace, directory traversal
* and multiple plugin directories.
*
* @throws Exception
*/
if($zip->extractTo($extractPath) !== true){ thrownewEmotionImportException(sprintf('Could not extract zip file %s to %s!', $filePath, $extractPath)); }