src/Consolet/Generators/AbstractStubGenerator.php
protected function formatStub($stub, array $replacement)
    {
        foreach ($replacement as $src => $dest) {
            $stub = str_replace($src, $dest, $stub);
        }
        return $stub;
    }
protected function formatStub($stub, array $replacement)
    {
        foreach ($replacement as $src => $dest) {
            $stub = str_replace($src, $dest, $stub);
        }
        return $stub;
    }
protected function formatStub ( $ stub , array $ replacement ) { foreach ( $ replacement as $ src => $ dest ) { $ stub = str_replace ( $ src , $ dest , $ stub ) ; } return $ stub ; }
replace stub text

@param string $stub
@param array $replacement
@return string
replace stub text