original_string: public function getSumOfLineItems()
      {
          $amount = 0;
  
          foreach ($this->getLineItems() as $lineItem)
          {
              $amount += $lineItem->getPrice()*$lineItem->getQuantity();
          }
  
          return round($amount, 2);
      }
code: public function getSumOfLineItems()
      {
          $amount = 0;
  
          foreach ($this->getLineItems() as $lineItem)
          {
              $amount += $lineItem->getPrice()*$lineItem->getQuantity();
          }
  
          return round($amount, 2);
      }
code_tokens: public function getSumOfLineItems ( ) { $ amount = 0 ; foreach ( $ this -> getLineItems ( ) as $ lineItem ) { $ amount += $ lineItem -> getPrice ( ) * $ lineItem -> getQuantity ( ) ; } return round ( $ amount , 2 ) ; }
docstring: Get sum of line items
  
  @author Tom Haskins-Vaughan <tom@harvestcloud.com>
  @since  2012-05-13
  
  @return float
docstring_tokens: Get sum of line items