diff --git a/app/code/core/Mage/Sales/Model/Order.php b/app/code/core/Mage/Sales/Model/Order.php index 9922091e6fe..2c90b99f6ae 100644 --- a/app/code/core/Mage/Sales/Model/Order.php +++ b/app/code/core/Mage/Sales/Model/Order.php @@ -446,37 +446,37 @@ class Mage_Sales_Model_Order extends Mage_Sales_Model_Abstract protected $_addresses = null; /** - * @var Mage_Sales_Model_Resource_Order_Item_Collection|Mage_Sales_Model_Order_Item[]|null + * @var Mage_Sales_Model_Resource_Order_Item_Collection|Mage_Sales_Model_Order_Item[] */ protected $_items = null; /** - * @var Mage_Sales_Model_Resource_Order_Payment_Collection|Mage_Sales_Model_Order_Payment[]|null + * @var Mage_Sales_Model_Resource_Order_Payment_Collection|Mage_Sales_Model_Order_Payment[] */ protected $_payments = null; /** - * @var Mage_Sales_Model_Resource_Order_Status_History_Collection|Mage_Sales_Model_Order_Status_History[]|null + * @var Mage_Sales_Model_Resource_Order_Status_History_Collection|Mage_Sales_Model_Order_Status_History[] */ protected $_statusHistory = null; /** - * @var Mage_Sales_Model_Resource_Order_Invoice_Collection|null + * @var Mage_Sales_Model_Resource_Order_Invoice_Collection */ protected $_invoices; /** - * @var Mage_Sales_Model_Resource_Order_Shipment_Track_Collection|null + * @var Mage_Sales_Model_Resource_Order_Shipment_Track_Collection */ protected $_tracks; /** - * @var Mage_Sales_Model_Resource_Order_Shipment_Collection|false|null + * @var Mage_Sales_Model_Resource_Order_Shipment_Collection|false */ protected $_shipments; /** - * @var Mage_Sales_Model_Resource_Order_Creditmemo_Collection|Mage_Sales_Model_Order_Creditmemo[]|false|null + * @var Mage_Sales_Model_Resource_Order_Creditmemo_Collection|Mage_Sales_Model_Order_Creditmemo[]|false */ protected $_creditmemos; @@ -1745,7 +1745,7 @@ public function getAllVisibleItems() $items = []; foreach ($this->getItemsCollection() as $item) { if (!$item->isDeleted() && !$item->getParentItemId()) { - $items[] = $item; + $items[] = $item; } } return $items; diff --git a/app/code/core/Mage/Sales/Model/Order/Address.php b/app/code/core/Mage/Sales/Model/Order/Address.php index ad977a74284..b1eac9ec6d3 100644 --- a/app/code/core/Mage/Sales/Model/Order/Address.php +++ b/app/code/core/Mage/Sales/Model/Order/Address.php @@ -104,6 +104,7 @@ protected function _construct() * Init mapping array of short fields to its full names * * @return $this + * @deprecated */ protected function _initOldFieldsMap() { diff --git a/app/code/core/Mage/Sales/Model/Order/Creditmemo.php b/app/code/core/Mage/Sales/Model/Order/Creditmemo.php index cec38de24ef..0dffab8e7ed 100644 --- a/app/code/core/Mage/Sales/Model/Order/Creditmemo.php +++ b/app/code/core/Mage/Sales/Model/Order/Creditmemo.php @@ -217,6 +217,7 @@ protected function _construct() * Init mapping array of short fields to its full names * * @return $this + * @deprecated */ protected function _initOldFieldsMap() { diff --git a/app/code/core/Mage/Sales/Model/Order/Invoice.php b/app/code/core/Mage/Sales/Model/Order/Invoice.php index dbdc6dff7df..2c498dcac2b 100644 --- a/app/code/core/Mage/Sales/Model/Order/Invoice.php +++ b/app/code/core/Mage/Sales/Model/Order/Invoice.php @@ -212,6 +212,7 @@ protected function _construct() * Init mapping array of short fields to its full names * * @return $this + * @deprecated */ protected function _initOldFieldsMap() { diff --git a/app/code/core/Mage/Sales/Model/Order/Invoice/Item.php b/app/code/core/Mage/Sales/Model/Order/Invoice/Item.php index 22fb94109d1..7b751830801 100644 --- a/app/code/core/Mage/Sales/Model/Order/Invoice/Item.php +++ b/app/code/core/Mage/Sales/Model/Order/Invoice/Item.php @@ -96,14 +96,10 @@ class Mage_Sales_Model_Order_Invoice_Item extends Mage_Core_Model_Abstract protected $_eventPrefix = 'sales_invoice_item'; protected $_eventObject = 'invoice_item'; - /** - * @var Mage_Sales_Model_Order_Invoice - */ + /** @var Mage_Sales_Model_Order_Invoice */ protected $_invoice = null; - /** - * @var Mage_Sales_Model_Order_Item|null - */ + /** @var Mage_Sales_Model_Order_Item */ protected $_orderItem = null; public function _construct() diff --git a/app/code/core/Mage/Sales/Model/Order/Item.php b/app/code/core/Mage/Sales/Model/Order/Item.php index 4cc17cb61c9..82c116245c5 100644 --- a/app/code/core/Mage/Sales/Model/Order/Item.php +++ b/app/code/core/Mage/Sales/Model/Order/Item.php @@ -221,7 +221,6 @@ class Mage_Sales_Model_Order_Item extends Mage_Core_Model_Abstract * @var Mage_Sales_Model_Order|null */ protected $_order = null; - protected $_parentItem = null; protected $_children = []; @@ -238,6 +237,7 @@ protected function _construct() * its full names * * @return Varien_Object + * @deprecated */ protected function _initOldFieldsMap() { diff --git a/app/code/core/Mage/Sales/Model/Order/Shipment.php b/app/code/core/Mage/Sales/Model/Order/Shipment.php index 39bc21fb9e1..f6793e4ef52 100644 --- a/app/code/core/Mage/Sales/Model/Order/Shipment.php +++ b/app/code/core/Mage/Sales/Model/Order/Shipment.php @@ -119,6 +119,7 @@ protected function _construct() * Init mapping array of short fields to its full names * * @return $this + * @deprecated */ protected function _initOldFieldsMap() { diff --git a/app/code/core/Mage/Sales/Model/Quote.php b/app/code/core/Mage/Sales/Model/Quote.php index 405246bd099..3fe913c8271 100644 --- a/app/code/core/Mage/Sales/Model/Quote.php +++ b/app/code/core/Mage/Sales/Model/Quote.php @@ -254,6 +254,7 @@ protected function _construct() * its full names * * @return Varien_Object + * @deprecated */ protected function _initOldFieldsMap() { diff --git a/app/code/core/Mage/Sales/Model/Quote/Address.php b/app/code/core/Mage/Sales/Model/Quote/Address.php index e522cd5959a..86b6e9fd762 100644 --- a/app/code/core/Mage/Sales/Model/Quote/Address.php +++ b/app/code/core/Mage/Sales/Model/Quote/Address.php @@ -314,6 +314,7 @@ protected function _construct() * Init mapping array of short fields to its full names * * @return $this + * @deprecated */ protected function _initOldFieldsMap() { diff --git a/app/code/core/Mage/Sales/Model/Quote/Item.php b/app/code/core/Mage/Sales/Model/Quote/Item.php index 07ecc6c0884..8f0500a659d 100644 --- a/app/code/core/Mage/Sales/Model/Quote/Item.php +++ b/app/code/core/Mage/Sales/Model/Quote/Item.php @@ -236,6 +236,7 @@ protected function _construct() * its full names * * @return $this + * @deprecated */ protected function _initOldFieldsMap() {