src/Graviton/GeneratorBundle/Command/BundeBundleUnloadCommand.php
private function getNewContent($content, array $newBundleList)
    {
        $contentData = $this->getContentData($content);

        $beforePart = substr($content, 0, $contentData['startStringPos']);
        $endPart = substr($content, $contentData['endStringPos']);

        return $beforePart.PHP_EOL.implode(','.PHP_EOL, $newBundleList).PHP_EOL.$endPart;
    }
private function getNewContent($content, array $newBundleList)
    {
        $contentData = $this->getContentData($content);

        $beforePart = substr($content, 0, $contentData['startStringPos']);
        $endPart = substr($content, $contentData['endStringPos']);

        return $beforePart.PHP_EOL.implode(','.PHP_EOL, $newBundleList).PHP_EOL.$endPart;
    }
private function getNewContent ( $ content , array $ newBundleList ) { $ contentData = $ this -> getContentData ( $ content ) ; $ beforePart = substr ( $ content , 0 , $ contentData [ 'startStringPos' ] ) ; $ endPart = substr ( $ content , $ contentData [ 'endStringPos' ] ) ; return $ beforePart . PHP_EOL . implode ( ',' . PHP_EOL , $ newBundleList ) . PHP_EOL . $ endPart ; }
replaces the stuff in the content

@param string $content       the bundlebundle content
@param array  $newBundleList new bundle list

@return string new content
replaces the stuff in the content