File tree Expand file tree Collapse file tree 4 files changed +14
-6
lines changed
app/code/Magento/Checkout/Model Expand file tree Collapse file tree 4 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
- declare (strict_types = 1 );
6
+ declare (strict_types= 1 );
7
7
8
8
namespace Magento \Checkout \Model ;
9
9
@@ -51,7 +51,9 @@ public function __construct(
51
51
52
52
/**
53
53
* @inheritDoc
54
+ *
54
55
* @throws LocalizedException
56
+ * @SuppressWarnings(PHPMD.CyclomaticComplexity)
55
57
*/
56
58
public function customerCheckoutAddressMapper (
57
59
int $ cartId ,
@@ -96,8 +98,8 @@ public function customerCheckoutAddressMapper(
96
98
* @inheritDoc
97
99
*/
98
100
public function guestCheckoutAddressMapper (
99
- string $ cartId ,
100
- string $ email ,
101
+ int | string $ cartId ,
102
+ string $ email ,
101
103
PaymentInterface $ paymentMethod ,
102
104
AddressInterface $ billingAddress = null
103
105
): void {
@@ -107,7 +109,10 @@ public function guestCheckoutAddressMapper(
107
109
$ shippingAddress = $ quote ->getShippingAddress ();
108
110
109
111
if (!empty ($ billingAddress )) {
110
- $ sameAsBillingFlag = $ this ->checkIfShippingAddressMatchesWithBillingAddress ($ shippingAddress , $ billingAddress );
112
+ $ sameAsBillingFlag = $ this ->checkIfShippingAddressMatchesWithBillingAddress (
113
+ $ shippingAddress ,
114
+ $ billingAddress
115
+ );
111
116
} else {
112
117
$ sameAsBillingFlag = 0 ;
113
118
}
Original file line number Diff line number Diff line change @@ -29,14 +29,14 @@ public function customerCheckoutAddressMapper(
29
29
/**
30
30
* Process guest address information for same as billing
31
31
*
32
- * @param string $cartId
32
+ * @param int| string $cartId
33
33
* @param string $email
34
34
* @param PaymentInterface $paymentMethod
35
35
* @param AddressInterface|null $billingAddress
36
36
* @return void
37
37
*/
38
38
public function guestCheckoutAddressMapper (
39
- string $ cartId ,
39
+ int | string $ cartId ,
40
40
string $ email ,
41
41
PaymentInterface $ paymentMethod ,
42
42
AddressInterface $ billingAddress = null
Original file line number Diff line number Diff line change @@ -207,6 +207,7 @@ public function getPaymentInformation($cartId)
207
207
*
208
208
* @return \Psr\Log\LoggerInterface
209
209
* @deprecated 100.1.8
210
+ * @see not in use anymore
210
211
*/
211
212
private function getLogger ()
212
213
{
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ class PaymentInformationManagement implements \Magento\Checkout\Api\PaymentInfor
23
23
/**
24
24
* @var \Magento\Quote\Api\BillingAddressManagementInterface
25
25
* @deprecated 100.1.0 This call was substituted to eliminate extra quote::save call
26
+ * @see not in use anymore
26
27
*/
27
28
protected $ billingAddressManagement ;
28
29
@@ -208,6 +209,7 @@ public function getPaymentInformation($cartId)
208
209
*
209
210
* @return \Psr\Log\LoggerInterface
210
211
* @deprecated 100.1.8
212
+ * @see not in use anymore
211
213
*/
212
214
private function getLogger ()
213
215
{
You can’t perform that action at this time.
0 commit comments