protected function copyStubs($packagePath, $package, $packageFolderName)
    {
        $facadeFilePath = $this->packageBaseDir.'/stubs/Facade.php.tpl';
        $mainClassFilePath = $this->packageBaseDir.'/stubs/MainClass.php.tpl';
        $mainClassTestFilePath = $this->packageBaseDir.'/stubs/MainClassTest.php.tpl';
        $configFilePath = $this->packageBaseDir.'/stubs/config.php';

        $filePaths = [
            $facadeFilePath => "$packagePath/src/Facades/$package.php.tpl",
            $mainClassFilePath => "$packagePath/src/$package.php.tpl",
            $mainClassTestFilePath => "$packagePath/tests/{$package}Test.php.tpl",
            $configFilePath => "$packagePath/config/$packageFolderName.php",
        ];

        foreach ($filePaths as $filePath => $destFilePath) {
            $this->copyFileWithDirsCreating($filePath, $destFilePath);
        }
    }
protected function copyStubs($packagePath, $package, $packageFolderName)
    {
        $facadeFilePath = $this->packageBaseDir.'/stubs/Facade.php.tpl';
        $mainClassFilePath = $this->packageBaseDir.'/stubs/MainClass.php.tpl';
        $mainClassTestFilePath = $this->packageBaseDir.'/stubs/MainClassTest.php.tpl';
        $configFilePath = $this->packageBaseDir.'/stubs/config.php';

        $filePaths = [
            $facadeFilePath => "$packagePath/src/Facades/$package.php.tpl",
            $mainClassFilePath => "$packagePath/src/$package.php.tpl",
            $mainClassTestFilePath => "$packagePath/tests/{$package}Test.php.tpl",
            $configFilePath => "$packagePath/config/$packageFolderName.php",
        ];

        foreach ($filePaths as $filePath => $destFilePath) {
            $this->copyFileWithDirsCreating($filePath, $destFilePath);
        }
    }
protected function copyStubs ( $ packagePath , $ package , $ packageFolderName ) { $ facadeFilePath = $ this -> packageBaseDir . '/stubs/Facade.php.tpl' ; $ mainClassFilePath = $ this -> packageBaseDir . '/stubs/MainClass.php.tpl' ; $ mainClassTestFilePath = $ this -> packageBaseDir . '/stubs/MainClassTest.php.tpl' ; $ configFilePath = $ this -> packageBaseDir . '/stubs/config.php' ; $ filePaths = [ $ facadeFilePath => "$packagePath/src/Facades/$package.php.tpl" , $ mainClassFilePath => "$packagePath/src/$package.php.tpl" , $ mainClassTestFilePath => "$packagePath/tests/{$package}Test.php.tpl" , $ configFilePath => "$packagePath/config/$packageFolderName.php" , ] ; foreach ( $ filePaths as $ filePath => $ destFilePath ) { $ this -> copyFileWithDirsCreating ( $ filePath , $ destFilePath ) ; } }
Copy stubs.

@param $packagePath
@param $package
@param $packageFolderName
Copy stubs .