original_string: protected function getKeyPath($key)
      {
          if (empty($this->options['parents'])) {
              return $key;
          }
  
          if (is_string($this->options['parents'])) {
              $this->options['parents'] = explode('.', $this->options['parents']);
          }
  
          if (is_string($key)) {
              $key = explode('.', $key);
          }
  
          return array_merge((array) $this->options['parents'], (array) $key);
      }
code: protected function getKeyPath($key)
      {
          if (empty($this->options['parents'])) {
              return $key;
          }
  
          if (is_string($this->options['parents'])) {
              $this->options['parents'] = explode('.', $this->options['parents']);
          }
  
          if (is_string($key)) {
              $key = explode('.', $key);
          }
  
          return array_merge((array) $this->options['parents'], (array) $key);
      }
code_tokens: protected function getKeyPath ( $ key ) { if ( empty ( $ this -> options [ 'parents' ] ) ) { return $ key ; } if ( is_string ( $ this -> options [ 'parents' ] ) ) { $ this -> options [ 'parents' ] = explode ( '.' , $ this -> options [ 'parents' ] ) ; } if ( is_string ( $ key ) ) { $ key = explode ( '.' , $ key ) ; } return array_merge ( ( array ) $ this -> options [ 'parents' ] , ( array ) $ key ) ; }
docstring: Returns an array that represents a path to a nested array value
  @param string|array $key
  @return array
docstring_tokens: Returns an array that represents a path to a nested array value