original_string: protected function preNormalize($value)
      {
          if (!$this->normalizeKeys || !\is_array($value)) {
              return $value;
          }
  
          $normalized = [];
  
          foreach ($value as $k => $v) {
              if (false !== strpos($k, '-') && false === strpos($k, '_') && !\array_key_exists($normalizedKey = str_replace('-', '_', $k), $value)) {
                  $normalized[$normalizedKey] = $v;
              } else {
                  $normalized[$k] = $v;
              }
          }
  
          return $normalized;
      }
code: protected function preNormalize($value)
      {
          if (!$this->normalizeKeys || !\is_array($value)) {
              return $value;
          }
  
          $normalized = [];
  
          foreach ($value as $k => $v) {
              if (false !== strpos($k, '-') && false === strpos($k, '_') && !\array_key_exists($normalizedKey = str_replace('-', '_', $k), $value)) {
                  $normalized[$normalizedKey] = $v;
              } else {
                  $normalized[$k] = $v;
              }
          }
  
          return $normalized;
      }
code_tokens: protected function preNormalize ( $ value ) { if ( ! $ this -> normalizeKeys || ! \ is_array ( $ value ) ) { return $ value ; } $ normalized = [ ] ; foreach ( $ value as $ k => $ v ) { if ( false !== strpos ( $ k , '-' ) && false === strpos ( $ k , '_' ) && ! \ array_key_exists ( $ normalizedKey = str_replace ( '-' , '_' , $ k ) , $ value ) ) { $ normalized [ $ normalizedKey ] = $ v ; } else { $ normalized [ $ k ] = $ v ; } } return $ normalized ; }
docstring: Normalizes keys between the different configuration formats.
  
  Namely, you mostly have foo_bar in YAML while you have foo-bar in XML.
  After running this method, all keys are normalized to foo_bar.
  
  If you have a mixed key like foo-bar_moo, it will not be altered.
  The key will also not be altered if the target key already exists.
  
  @param mixed $value
  
  @return array The value with normalized keys
docstring_tokens: Normalizes keys between the different configuration formats .