Code Duplication    Length = 4-4 lines in 2 locations

class/ebay.php 2 locations

@@ 245-248 (lines=4) @@
242
					$ar[$id]['CreatedTime'] = date('Y-m-d H:i:s O', strtotime($ar[$id]['CreatedTime']));
243
244
					// Shipping
245
					if (empty($order->ShippingServiceSelected))
246
						$ar[$id]['ShippingServiceCost'] = 0;
247
					else
248
						$ar[$id]['ShippingServiceCost'] = strval($order->ShippingServiceSelected->ShippingServiceCost);
249
					$ar[$id]['ShippingAddress'] =
250
						strval($order->ShippingAddress->Name) . "\n"
251
						. strval($order->ShippingAddress->Street1) . "\n"
@@ 317-320 (lines=4) @@
314
					$ar[$id]['AmountPaid'] = strval($trans->AmountPaid);
315
316
					// Shipping
317
					if (empty($trans->ShippingServiceSelected))
318
						$ar[$id]['ShippingServiceCost'] = 0;
319
					else
320
						$ar[$id]['ShippingServiceCost'] = strval($trans->ShippingServiceSelected->ShippingServiceCost);
321
					$ar[$id]['ShippingAddress'] = $this->ParseShippingAddress($trans->Buyer->BuyerInfo->ShippingAddress);
322
323
					$ar[$id]['PaidTime'] = strval($trans->PaidTime);