original_string: protected function _mergeOptions(array $current, array $options)
      {
          if (isset($options['frontend']['name'])) {
              $current['frontend']['name'] = $options['frontend']['name'];
          }
          if (isset($options['backend']['name'])) {
              $current['backend']['name'] = $options['backend']['name'];
          }
          if (isset($options['frontend']['options'])) {
              foreach ($options['frontend']['options'] as $key=>$value) {
                  $current['frontend']['options'][$key] = $value;
              }
          }
          if (isset($options['backend']['options'])) {
              foreach ($options['backend']['options'] as $key=>$value) {
                  $current['backend']['options'][$key] = $value;
              }
          }
          return $current;
      }
code: protected function _mergeOptions(array $current, array $options)
      {
          if (isset($options['frontend']['name'])) {
              $current['frontend']['name'] = $options['frontend']['name'];
          }
          if (isset($options['backend']['name'])) {
              $current['backend']['name'] = $options['backend']['name'];
          }
          if (isset($options['frontend']['options'])) {
              foreach ($options['frontend']['options'] as $key=>$value) {
                  $current['frontend']['options'][$key] = $value;
              }
          }
          if (isset($options['backend']['options'])) {
              foreach ($options['backend']['options'] as $key=>$value) {
                  $current['backend']['options'][$key] = $value;
              }
          }
          return $current;
      }
code_tokens: protected function _mergeOptions ( array $ current , array $ options ) { if ( isset ( $ options [ 'frontend' ] [ 'name' ] ) ) { $ current [ 'frontend' ] [ 'name' ] = $ options [ 'frontend' ] [ 'name' ] ; } if ( isset ( $ options [ 'backend' ] [ 'name' ] ) ) { $ current [ 'backend' ] [ 'name' ] = $ options [ 'backend' ] [ 'name' ] ; } if ( isset ( $ options [ 'frontend' ] [ 'options' ] ) ) { foreach ( $ options [ 'frontend' ] [ 'options' ] as $ key => $ value ) { $ current [ 'frontend' ] [ 'options' ] [ $ key ] = $ value ; } } if ( isset ( $ options [ 'backend' ] [ 'options' ] ) ) { foreach ( $ options [ 'backend' ] [ 'options' ] as $ key => $ value ) { $ current [ 'backend' ] [ 'options' ] [ $ key ] = $ value ; } } return $ current ; }
docstring: Simple method to merge two configuration arrays
  
  @param  array $current
  @param  array $options
  @return array
docstring_tokens: Simple method to merge two configuration arrays