protected function replacePlaceholders($contents, $options)
    {
        $find = [
            'DummyNamespace',
            'DummyEscapedNamespace',
            'DummyName',
            'DummySlug',
            'DummyVersion',
            'DummyDescription',
            'DummyPackageName',
            'DummyAuthor',
        ];

        $replace = [
            $options['namespace'],
            $options['escaped_namespace'],
            $options['name'],
            $options['slug'],
            $options['version'],
            $options['description'],
            $options['package_name'],
            $options['author'],
        ];

        return str_replace($find, $replace, $contents);
    }
protected function replacePlaceholders($contents, $options)
    {
        $find = [
            'DummyNamespace',
            'DummyEscapedNamespace',
            'DummyName',
            'DummySlug',
            'DummyVersion',
            'DummyDescription',
            'DummyPackageName',
            'DummyAuthor',
        ];

        $replace = [
            $options['namespace'],
            $options['escaped_namespace'],
            $options['name'],
            $options['slug'],
            $options['version'],
            $options['description'],
            $options['package_name'],
            $options['author'],
        ];

        return str_replace($find, $replace, $contents);
    }
protected function replacePlaceholders ( $ contents , $ options ) { $ find = [ 'DummyNamespace' , 'DummyEscapedNamespace' , 'DummyName' , 'DummySlug' , 'DummyVersion' , 'DummyDescription' , 'DummyPackageName' , 'DummyAuthor' , ] ; $ replace = [ $ options [ 'namespace' ] , $ options [ 'escaped_namespace' ] , $ options [ 'name' ] , $ options [ 'slug' ] , $ options [ 'version' ] , $ options [ 'description' ] , $ options [ 'package_name' ] , $ options [ 'author' ] , ] ; return str_replace ( $ find , $ replace , $ contents ) ; }
Replace placeholders with actual content.

@param $contents
@param $options
@return mixed
Replace placeholders with actual content .