diff --git a/app/code/Magento/Checkout/view/frontend/web/js/checkout-data.js b/app/code/Magento/Checkout/view/frontend/web/js/checkout-data.js index 6784ca111674c..9c0ef8bb58c07 100644 --- a/app/code/Magento/Checkout/view/frontend/web/js/checkout-data.js +++ b/app/code/Magento/Checkout/view/frontend/web/js/checkout-data.js @@ -31,14 +31,14 @@ define([ if ($.isEmptyObject(data)) { data = { - 'selectedShippingAddress': null, - 'shippingAddressFromData': null, - 'newCustomerShippingAddress': null, - 'selectedShippingRate': null, - 'selectedPaymentMethod': null, - 'selectedBillingAddress': null, - 'billingAddressFormData': null, - 'newCustomerBillingAddress': null + 'selectedShippingAddress': null, //Selected shipping address pulled from persistence storage + 'shippingAddressFromData': null, //Shipping address pulled from persistence storage + 'newCustomerShippingAddress': null, //Shipping address pulled from persistence storage for customer + 'selectedShippingRate': null, //Shipping rate pulled from persistence storage + 'selectedPaymentMethod': null, //Payment method pulled from persistence storage + 'selectedBillingAddress': null, //Selected billing address pulled from persistence storage + 'billingAddressFromData': null, //Billing address pulled from persistence storage + 'newCustomerBillingAddress': null //Billing address pulled from persistence storage for new customer }; saveData(data); } @@ -48,6 +48,8 @@ define([ return { /** + * Setting the selected shipping address pulled from persistence storage + * * @param {Object} data */ setSelectedShippingAddress: function (data) { @@ -58,6 +60,8 @@ define([ }, /** + * Pulling the selected shipping address from persistence storage + * * @return {*} */ getSelectedShippingAddress: function () { @@ -65,6 +69,8 @@ define([ }, /** + * Setting the shipping address pulled from persistence storage + * * @param {Object} data */ setShippingAddressFromData: function (data) { @@ -75,6 +81,8 @@ define([ }, /** + * Pulling the shipping address from persistence storage + * * @return {*} */ getShippingAddressFromData: function () { @@ -82,6 +90,8 @@ define([ }, /** + * Setting the shipping address pulled from persistence storage for new customer + * * @param {Object} data */ setNewCustomerShippingAddress: function (data) { @@ -92,6 +102,8 @@ define([ }, /** + * Pulling the shipping address from persistence storage for new customer + * * @return {*} */ getNewCustomerShippingAddress: function () { @@ -99,6 +111,8 @@ define([ }, /** + * Setting the selected shipping rate pulled from persistence storage + * * @param {Object} data */ setSelectedShippingRate: function (data) { @@ -109,6 +123,8 @@ define([ }, /** + * Pulling the selected shipping rate from local storage + * * @return {*} */ getSelectedShippingRate: function () { @@ -116,6 +132,8 @@ define([ }, /** + * Setting the selected payment method pulled from persistence storage + * * @param {Object} data */ setSelectedPaymentMethod: function (data) { @@ -126,6 +144,8 @@ define([ }, /** + * Pulling the payment method from persistence storage + * * @return {*} */ getSelectedPaymentMethod: function () { @@ -133,6 +153,8 @@ define([ }, /** + * Setting the selected billing address pulled from persistence storage + * * @param {Object} data */ setSelectedBillingAddress: function (data) { @@ -143,6 +165,8 @@ define([ }, /** + * Pulling the selected billing address from persistence storage + * * @return {*} */ getSelectedBillingAddress: function () { @@ -150,6 +174,8 @@ define([ }, /** + * Setting the billing address pulled from persistence storage + * * @param {Object} data */ setBillingAddressFromData: function (data) { @@ -160,6 +186,8 @@ define([ }, /** + * Pulling the billing address from persistence storage + * * @return {*} */ getBillingAddressFromData: function () { @@ -167,6 +195,8 @@ define([ }, /** + * Setting the billing address pulled from persistence storage for new customer + * * @param {Object} data */ setNewCustomerBillingAddress: function (data) { @@ -177,6 +207,8 @@ define([ }, /** + * Pulling the billing address from persistence storage for new customer + * * @return {*} */ getNewCustomerBillingAddress: function () { @@ -184,6 +216,8 @@ define([ }, /** + * Pulling the email address from persistence storage + * * @return {*} */ getValidatedEmailValue: function () { @@ -193,6 +227,8 @@ define([ }, /** + * Setting the email address pulled from persistence storage + * * @param {String} email */ setValidatedEmailValue: function (email) { @@ -203,6 +239,8 @@ define([ }, /** + * Pulling the email input field value from persistence storage + * * @return {*} */ getInputFieldEmailValue: function () { @@ -212,6 +250,8 @@ define([ }, /** + * Setting the email input field value pulled from persistence storage + * * @param {String} email */ setInputFieldEmailValue: function (email) { diff --git a/app/code/Magento/Eav/Model/Entity/Attribute/Frontend/AbstractFrontend.php b/app/code/Magento/Eav/Model/Entity/Attribute/Frontend/AbstractFrontend.php index d1794aff97fb9..8f1324195b382 100644 --- a/app/code/Magento/Eav/Model/Entity/Attribute/Frontend/AbstractFrontend.php +++ b/app/code/Magento/Eav/Model/Entity/Attribute/Frontend/AbstractFrontend.php @@ -68,8 +68,8 @@ abstract class AbstractFrontend implements \Magento\Eav\Model\Entity\Attribute\F * @param CacheInterface $cache * @param $storeResolver @deprecated * @param array $cacheTags - * @param Serializer $serializer * @param StoreManagerInterface $storeManager + * @param Serializer $serializer * @codeCoverageIgnore * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ @@ -78,8 +78,8 @@ public function __construct( CacheInterface $cache = null, $storeResolver = null, array $cacheTags = null, - Serializer $serializer = null, - StoreManagerInterface $storeManager = null + StoreManagerInterface $storeManager = null, + Serializer $serializer = null ) { $this->_attrBooleanFactory = $attrBooleanFactory; $this->cache = $cache ?: ObjectManager::getInstance()->get(CacheInterface::class);