src/Franzose/ClosureTable/Generators/Generator.php
protected function parseStub($stub, array $replacements = [])
    {
        foreach ($replacements as $key => $replacement) {
            $stub = str_replace('{{' . $key . '}}', $replacement, $stub);
        }

        return $stub;
    }
protected function parseStub($stub, array $replacements = [])
    {
        foreach ($replacements as $key => $replacement) {
            $stub = str_replace('{{' . $key . '}}', $replacement, $stub);
        }

        return $stub;
    }
protected function parseStub ( $ stub , array $ replacements = [ ] ) { foreach ( $ replacements as $ key => $ replacement ) { $ stub = str_replace ( '{{' . $ key . '}}' , $ replacement , $ stub ) ; } return $ stub ; }
Parses a stub file replacing tags with provided values.

@param string $stub
@param array $replacements
@return string
Parses a stub file replacing tags with provided values .