@@ -18,12 +18,8 @@ |
||
| 18 | 18 | /** |
| 19 | 19 | * Test constructing a new tax record. |
| 20 | 20 | * |
| 21 | - * @param int $taxSource Should be one of the tax record source consts. |
|
| 22 | 21 | * @param int |
| 23 | 22 | * @param int |
| 24 | - * @param int|null $itemId Address level taxes may not have an associated item id. |
|
| 25 | - * @param ITax $taxPayload|null SDK payload of tax data to use to populate the tax record. |
|
| 26 | - * @param array $recordData Tax record data to be set directly on the tax record. May be used in place of an ITax payload. |
|
| 27 | 23 | * @return EbayEnterprise_Tax_Model_Record |
| 28 | 24 | */ |
| 29 | 25 | public function testCreateTaxRecord() |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | */ |
| 24 | 24 | public function selectFrom(array $items) |
| 25 | 25 | { |
| 26 | - $predicate = function (Mage_Sales_Model_Quote_Item_Abstract $item) { |
|
| 26 | + $predicate = function(Mage_Sales_Model_Quote_Item_Abstract $item) { |
|
| 27 | 27 | $parentItem = $item->getParentItem(); |
| 28 | 28 | return !($parentItem && $parentItem->getProductType() === Mage_Catalog_Model_Product_Type::TYPE_CONFIGURABLE); |
| 29 | 29 | } |
@@ -19,10 +19,9 @@ discard block |
||
| 19 | 19 | { |
| 20 | 20 | $parents = []; |
| 21 | 21 | $items = []; |
| 22 | - foreach(range(0, 1) as $i) { |
|
| 22 | + foreach (range(0, 1) as $i) { |
|
| 23 | 23 | $productType = ($i ? |
| 24 | - Mage_Catalog_Model_Product_Type::TYPE_CONFIGURABLE : |
|
| 25 | - Mage_Catalog_Model_Product_Type::TYPE_BUNDLE); |
|
| 24 | + Mage_Catalog_Model_Product_Type::TYPE_CONFIGURABLE : Mage_Catalog_Model_Product_Type::TYPE_BUNDLE); |
|
| 26 | 25 | $parent = $this->getModelMock('sales/quote_item_abstract', ['getProductType'], true); |
| 27 | 26 | $parent |
| 28 | 27 | ->method('getProductType') |
@@ -34,7 +33,7 @@ discard block |
||
| 34 | 33 | ->willReturn(null); |
| 35 | 34 | $items[] = $item; |
| 36 | 35 | } |
| 37 | - foreach($parents as $parent) { |
|
| 36 | + foreach ($parents as $parent) { |
|
| 38 | 37 | $item = $this->getModelMock('sales/quote_item_abstract', ['getParentItem'], true); |
| 39 | 38 | $item |
| 40 | 39 | ->method('getParentItem') |