original_string: protected function parseNestedKeyPairHeader($nestedPairs)
      {
          return array_reduce(explode(';', $nestedPairs), function($result, $pair) {
              $keyVal = explode('=', $pair, 2);
              $key = trim(array_shift($keyVal));
              $val = trim(implode('=', $keyVal));
              if ($key !== '' && $val !== '') {
                  $result[$key] = $val;
              }
              return $result;
          }, []);
      }
code: protected function parseNestedKeyPairHeader($nestedPairs)
      {
          return array_reduce(explode(';', $nestedPairs), function($result, $pair) {
              $keyVal = explode('=', $pair, 2);
              $key = trim(array_shift($keyVal));
              $val = trim(implode('=', $keyVal));
              if ($key !== '' && $val !== '') {
                  $result[$key] = $val;
              }
              return $result;
          }, []);
      }
code_tokens: protected function parseNestedKeyPairHeader ( $ nestedPairs ) { return array_reduce ( explode ( ';' , $ nestedPairs ) , function ( $ result , $ pair ) { $ keyVal = explode ( '=' , $ pair , 2 ) ; $ key = trim ( array_shift ( $ keyVal ) ) ; $ val = trim ( implode ( '=' , $ keyVal ) ) ; if ( $ key !== '' && $ val !== '' ) { $ result [ $ key ] = $ val ; } return $ result ; } , [ ] ) ; }
docstring: Parse the any nested key-pair values in the header value
  
  @param  string $nestedPairs
  @return array
docstring_tokens: Parse the any nested key - pair values in the header value