private function writeStubs(string $target_path, string $source_file): void
    {
        @mkdir(dirname($target_path), 0775, true);
        
        
        $this->updatePlaceholders([
            "/*<FILENAME>*/" => preg_replace("#\.php$#", "", basename($target_path)),
        ]);
        $content = $this->replacePlaceholdersInText(file_get_contents($source_file));
        
        
        //var_dump($content);
        file_put_contents($target_path, $content);
    }
private function writeStubs(string $target_path, string $source_file): void
    {
        @mkdir(dirname($target_path), 0775, true);
        
        
        $this->updatePlaceholders([
            "/*<FILENAME>*/" => preg_replace("#\.php$#", "", basename($target_path)),
        ]);
        $content = $this->replacePlaceholdersInText(file_get_contents($source_file));
        
        
        //var_dump($content);
        file_put_contents($target_path, $content);
    }
private function writeStubs ( string $ target_path , string $ source_file ) : void { @ mkdir ( dirname ( $ target_path ) , 0775 , true ) ; $ this -> updatePlaceholders ( [ "/*<FILENAME>*/" => preg_replace ( "#\.php$#" , "" , basename ( $ target_path ) ) , ] ) ; $ content = $ this -> replacePlaceholdersInText ( file_get_contents ( $ source_file ) ) ; //var_dump($content); file_put_contents ( $ target_path , $ content ) ; }
writeStubs to final files


@param string $target_path
@param string $source_file

@return void
writeStubs to final files