protected static function copyDistributionFiles(string $installerResourcesDirectory)
    {
        $essentialsPath = $installerResourcesDirectory . 'Distribution/Essentials';
        if (is_dir($essentialsPath)) {
            Files::copyDirectoryRecursively($essentialsPath, Files::getUnixStylePath(getcwd()) . '/', false, true);
        }

        $defaultsPath = $installerResourcesDirectory . 'Distribution/Defaults';
        if (is_dir($defaultsPath)) {
            Files::copyDirectoryRecursively($defaultsPath, Files::getUnixStylePath(getcwd()) . '/', true, true);
        }
    }
protected static function copyDistributionFiles(string $installerResourcesDirectory)
    {
        $essentialsPath = $installerResourcesDirectory . 'Distribution/Essentials';
        if (is_dir($essentialsPath)) {
            Files::copyDirectoryRecursively($essentialsPath, Files::getUnixStylePath(getcwd()) . '/', false, true);
        }

        $defaultsPath = $installerResourcesDirectory . 'Distribution/Defaults';
        if (is_dir($defaultsPath)) {
            Files::copyDirectoryRecursively($defaultsPath, Files::getUnixStylePath(getcwd()) . '/', true, true);
        }
    }
protected static function copyDistributionFiles ( string $ installerResourcesDirectory ) { $ essentialsPath = $ installerResourcesDirectory . 'Distribution/Essentials' ; if ( is_dir ( $ essentialsPath ) ) { Files :: copyDirectoryRecursively ( $ essentialsPath , Files :: getUnixStylePath ( getcwd ( ) ) . '/' , false , true ) ; } $ defaultsPath = $ installerResourcesDirectory . 'Distribution/Defaults' ; if ( is_dir ( $ defaultsPath ) ) { Files :: copyDirectoryRecursively ( $ defaultsPath , Files :: getUnixStylePath ( getcwd ( ) ) . '/' , true , true ) ; } }
Copies any distribution files to their place if needed.

@param string $installerResourcesDirectory Path to the installer directory that contains the Distribution/Essentials and/or Distribution/Defaults directories.
@return void
Copies any distribution files to their place if needed .