protected function processOptions(array $options, Deployment $deployment)
    {
        foreach (['tagName', 'description'] as $optionName) {
            $options[$optionName] = str_replace(
                [
                    '{releaseIdentifier}',
                    '{deploymentName}'
                ],
                [
                    $deployment->getReleaseIdentifier(),
                    $deployment->getName()
                ],
                $options[$optionName]
            );
        }

        if (!isset($options['submoduleTagNamePrefix'])) {
            $options['submoduleTagNamePrefix'] = '';
        }

        if (!isset($options['remote'])) {
            $options['remote'] = 'origin';
            return $options;
        }
        return $options;
    }
protected function processOptions(array $options, Deployment $deployment)
    {
        foreach (['tagName', 'description'] as $optionName) {
            $options[$optionName] = str_replace(
                [
                    '{releaseIdentifier}',
                    '{deploymentName}'
                ],
                [
                    $deployment->getReleaseIdentifier(),
                    $deployment->getName()
                ],
                $options[$optionName]
            );
        }

        if (!isset($options['submoduleTagNamePrefix'])) {
            $options['submoduleTagNamePrefix'] = '';
        }

        if (!isset($options['remote'])) {
            $options['remote'] = 'origin';
            return $options;
        }
        return $options;
    }
protected function processOptions ( array $ options , Deployment $ deployment ) { foreach ( [ 'tagName' , 'description' ] as $ optionName ) { $ options [ $ optionName ] = str_replace ( [ '{releaseIdentifier}' , '{deploymentName}' ] , [ $ deployment -> getReleaseIdentifier ( ) , $ deployment -> getName ( ) ] , $ options [ $ optionName ] ) ; } if ( ! isset ( $ options [ 'submoduleTagNamePrefix' ] ) ) { $ options [ 'submoduleTagNamePrefix' ] = '' ; } if ( ! isset ( $ options [ 'remote' ] ) ) { $ options [ 'remote' ] = 'origin' ; return $ options ; } return $ options ; }
Replace placeholders in option values and set default values

@param array $options
@param \TYPO3\Surf\Domain\Model\Deployment $deployment
@return array
Replace placeholders in option values and set default values