src/Generator/Writer/AbstractProcessStep.php
protected function stubReplace($placeholder, $replace, $pregReplace = false)
    {
        if ($pregReplace) {

            $this->data->output['content'] = preg_replace(
                $placeholder,
                $replace,
                $this->data->output['content']
            );

        } else {

            $this->data->output['content'] = str_replace(
                $placeholder,
                $replace,
                $this->data->output['content']
            );
        }

        return $this;
    }
protected function stubReplace($placeholder, $replace, $pregReplace = false)
    {
        if ($pregReplace) {

            $this->data->output['content'] = preg_replace(
                $placeholder,
                $replace,
                $this->data->output['content']
            );

        } else {

            $this->data->output['content'] = str_replace(
                $placeholder,
                $replace,
                $this->data->output['content']
            );
        }

        return $this;
    }
protected function stubReplace ( $ placeholder , $ replace , $ pregReplace = false ) { if ( $ pregReplace ) { $ this -> data -> output [ 'content' ] = preg_replace ( $ placeholder , $ replace , $ this -> data -> output [ 'content' ] ) ; } else { $ this -> data -> output [ 'content' ] = str_replace ( $ placeholder , $ replace , $ this -> data -> output [ 'content' ] ) ; } return $ this ; }
Replaces output stub content placeholders with actual content

@param string $placeholder
@param string $replace
@param bool   $pregReplace   whether to use preg_replace
@return $this
Replaces output stub content placeholders with actual content