src/Knp/Snappy/AbstractGenerator.php
protected function mergeOptions(array $options)
    {
        $mergedOptions = $this->options;

        foreach ($options as $name => $value) {
            if (!array_key_exists($name, $mergedOptions)) {
                throw new \InvalidArgumentException(sprintf('The option \'%s\' does not exist.', $name));
            }

            $mergedOptions[$name] = $value;
        }

        return $mergedOptions;
    }
protected function mergeOptions(array $options)
    {
        $mergedOptions = $this->options;

        foreach ($options as $name => $value) {
            if (!array_key_exists($name, $mergedOptions)) {
                throw new \InvalidArgumentException(sprintf('The option \'%s\' does not exist.', $name));
            }

            $mergedOptions[$name] = $value;
        }

        return $mergedOptions;
    }
protected function mergeOptions ( array $ options ) { $ mergedOptions = $ this -> options ; foreach ( $ options as $ name => $ value ) { if ( ! array_key_exists ( $ name , $ mergedOptions ) ) { throw new \ InvalidArgumentException ( sprintf ( 'The option \'%s\' does not exist.' , $ name ) ) ; } $ mergedOptions [ $ name ] = $ value ; } return $ mergedOptions ; }
Merges the given array of options to the instance options and returns
the result options array. It does NOT change the instance options.

@param array $options

@throws \InvalidArgumentException

@return array
Merges the given array of options to the instance options and returns the result options array . It does NOT change the instance options .