original_string: protected function sumTotalVolume(&$total, array &$item, array $order)
      {
          $product = &$item['product'];
  
          if (empty($product['width']) || empty($product['height']) || empty($product['length'])) {
              return null;
          }
  
          if ($product['size_unit'] !== $order['size_unit']) {
  
              try {
                  $product['width'] = $this->convertor->convert($product['width'], $product['size_unit'], $order['size_unit']);
                  $product['height'] = $this->convertor->convert($product['height'], $product['size_unit'], $order['size_unit']);
                  $product['length'] = $this->convertor->convert($product['length'], $product['size_unit'], $order['size_unit']);
  
              } catch (Exception $ex) {
                  return null;
              }
  
              $product['size_unit'] = $order['size_unit'];
          }
  
          $volume = (float) ($product['width'] * $product['height'] * $product['length']);
          $total += (float) ($volume * $item['quantity']);
          return null;
      }
code: protected function sumTotalVolume(&$total, array &$item, array $order)
      {
          $product = &$item['product'];
  
          if (empty($product['width']) || empty($product['height']) || empty($product['length'])) {
              return null;
          }
  
          if ($product['size_unit'] !== $order['size_unit']) {
  
              try {
                  $product['width'] = $this->convertor->convert($product['width'], $product['size_unit'], $order['size_unit']);
                  $product['height'] = $this->convertor->convert($product['height'], $product['size_unit'], $order['size_unit']);
                  $product['length'] = $this->convertor->convert($product['length'], $product['size_unit'], $order['size_unit']);
  
              } catch (Exception $ex) {
                  return null;
              }
  
              $product['size_unit'] = $order['size_unit'];
          }
  
          $volume = (float) ($product['width'] * $product['height'] * $product['length']);
          $total += (float) ($volume * $item['quantity']);
          return null;
      }
code_tokens: protected function sumTotalVolume ( & $ total , array & $ item , array $ order ) { $ product = & $ item [ 'product' ] ; if ( empty ( $ product [ 'width' ] ) || empty ( $ product [ 'height' ] ) || empty ( $ product [ 'length' ] ) ) { return null ; } if ( $ product [ 'size_unit' ] !== $ order [ 'size_unit' ] ) { try { $ product [ 'width' ] = $ this -> convertor -> convert ( $ product [ 'width' ] , $ product [ 'size_unit' ] , $ order [ 'size_unit' ] ) ; $ product [ 'height' ] = $ this -> convertor -> convert ( $ product [ 'height' ] , $ product [ 'size_unit' ] , $ order [ 'size_unit' ] ) ; $ product [ 'length' ] = $ this -> convertor -> convert ( $ product [ 'length' ] , $ product [ 'size_unit' ] , $ order [ 'size_unit' ] ) ; } catch ( Exception $ ex ) { return null ; } $ product [ 'size_unit' ] = $ order [ 'size_unit' ] ; } $ volume = ( float ) ( $ product [ 'width' ] * $ product [ 'height' ] * $ product [ 'length' ] ) ; $ total += ( float ) ( $ volume * $ item [ 'quantity' ] ) ; return null ; }
docstring: Sum volume totals
  @param float $total
  @param array $item
  @param array $order
  @return null
docstring_tokens: Sum volume totals