original_string: protected function hydrateLineItems($items)
      {
          $result = array();
          if ($items == null) {
              return $result;
          }
  
          foreach ($items as $i => $item) {
              $result = array_merge(
                  $result,
                  array(
                      'Item_Name_'     . $i => $item->name,
                      'Item_Desc_'     . $i => $item->description,
                      'Item_Price_'    . $i => $this->formatAmount($item->amount),
                      'Item_Quantity_' . $i => $item->quantity,
                      'Item_SKU_'      . $i => $item->number,
                  )
              );
          }
  
          return $result;
      }
code: protected function hydrateLineItems($items)
      {
          $result = array();
          if ($items == null) {
              return $result;
          }
  
          foreach ($items as $i => $item) {
              $result = array_merge(
                  $result,
                  array(
                      'Item_Name_'     . $i => $item->name,
                      'Item_Desc_'     . $i => $item->description,
                      'Item_Price_'    . $i => $this->formatAmount($item->amount),
                      'Item_Quantity_' . $i => $item->quantity,
                      'Item_SKU_'      . $i => $item->number,
                  )
              );
          }
  
          return $result;
      }
code_tokens: protected function hydrateLineItems ( $ items ) { $ result = array ( ) ; if ( $ items == null ) { return $ result ; } foreach ( $ items as $ i => $ item ) { $ result = array_merge ( $ result , array ( 'Item_Name_' . $ i => $ item -> name , 'Item_Desc_' . $ i => $ item -> description , 'Item_Price_' . $ i => $ this -> formatAmount ( $ item -> amount ) , 'Item_Quantity_' . $ i => $ item -> quantity , 'Item_SKU_' . $ i => $ item -> number , ) ) ; } return $ result ; }
docstring: Converts HpsLineItem's into expected format for Cardinal
  
  @param array<int, HpsLineItem> $items line items from order
  
  @return array<string, string>
docstring_tokens: Converts HpsLineItem s into expected format for Cardinal