original_string: private function groupResults()
      {
          $result = array();
          foreach ($this->nodes as $node => $component) {
              if (array_key_exists($component, $result)) {
                  $result[$component][] = $node;
              } else {
                  $result[$component] = array($node);
              }
          }
  
          return $result;
      }
code: private function groupResults()
      {
          $result = array();
          foreach ($this->nodes as $node => $component) {
              if (array_key_exists($component, $result)) {
                  $result[$component][] = $node;
              } else {
                  $result[$component] = array($node);
              }
          }
  
          return $result;
      }
code_tokens: private function groupResults ( ) { $ result = array ( ) ; foreach ( $ this -> nodes as $ node => $ component ) { if ( array_key_exists ( $ component , $ result ) ) { $ result [ $ component ] [ ] = $ node ; } else { $ result [ $ component ] = array ( $ node ) ; } } return $ result ; }
docstring: Group the nodes by component.
  
  @return array
docstring_tokens: Group the nodes by component .