original_string: protected function getItemOrderOptions($item)
      {
          $result = array();
          if ($options = $item->getProductOptions()) {
              if (isset($options['options'])) {
                  $result = array_merge($result, $options['options']);
              }
              if (isset($options['additional_options'])) {
                  $result = array_merge($result, $options['additional_options']);
              }
              if (!empty($options['attributes_info'])) {
                  $result = array_merge($options['attributes_info'], $result);
              }
          }
          return $result;
      }
code: protected function getItemOrderOptions($item)
      {
          $result = array();
          if ($options = $item->getProductOptions()) {
              if (isset($options['options'])) {
                  $result = array_merge($result, $options['options']);
              }
              if (isset($options['additional_options'])) {
                  $result = array_merge($result, $options['additional_options']);
              }
              if (!empty($options['attributes_info'])) {
                  $result = array_merge($options['attributes_info'], $result);
              }
          }
          return $result;
      }
code_tokens: protected function getItemOrderOptions ( $ item ) { $ result = array ( ) ; if ( $ options = $ item -> getProductOptions ( ) ) { if ( isset ( $ options [ 'options' ] ) ) { $ result = array_merge ( $ result , $ options [ 'options' ] ) ; } if ( isset ( $ options [ 'additional_options' ] ) ) { $ result = array_merge ( $ result , $ options [ 'additional_options' ] ) ; } if ( ! empty ( $ options [ 'attributes_info' ] ) ) { $ result = array_merge ( $ options [ 'attributes_info' ] , $ result ) ; } } return $ result ; }
docstring: Returns all the product options of the given item including additional_options and
  attributes_info.
  
  @param Mage_Sales_Model_Order_Item $item The item to return info from
  @return Array The item options
docstring_tokens: Returns all the product options of the given item including additional_options and attributes_info .