Skip to content

Commit aafbb3c

Browse files
MAGETWO-94402: [2.3.0] PayPal Billing Address for Registered Customers
- fix docblocks
1 parent 6ec5acc commit aafbb3c

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

app/code/Magento/Paypal/Model/Express/Checkout.php

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
/**
1919
* Wrapper that performs Paypal Express and Checkout communication
20-
* Use current Paypal Express method instance
20+
*
2121
* @SuppressWarnings(PHPMD.TooManyFields)
2222
* @SuppressWarnings(PHPMD.ExcessiveClassComplexity)
2323
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
@@ -26,6 +26,7 @@ class Checkout
2626
{
2727
/**
2828
* Cache ID prefix for "pal" lookup
29+
*
2930
* @var string
3031
*/
3132
const PAL_CACHE_ID = 'paypal_express_checkout_pal';
@@ -367,6 +368,7 @@ public function __construct(
367368

368369
/**
369370
* Checkout with PayPal image URL getter
371+
*
370372
* Spares API calls of getting "pal" variable, by putting it into cache per store view
371373
*
372374
* @return string
@@ -599,8 +601,8 @@ public function canSkipOrderReviewStep()
599601

600602
/**
601603
* Update quote when returned from PayPal
602-
* rewrite billing address by paypal
603-
* save old billing address for new customer
604+
*
605+
* Rewrite billing address by paypal, save old billing address for new customer, and
604606
* export shipping address in case address absence
605607
*
606608
* @param string $token
@@ -946,6 +948,8 @@ protected function _setBillingAgreementRequest()
946948
}
947949

948950
/**
951+
* Get api
952+
*
949953
* @return \Magento\Paypal\Model\Api\Nvp
950954
*/
951955
protected function _getApi()
@@ -958,8 +962,9 @@ protected function _getApi()
958962

959963
/**
960964
* Attempt to collect address shipping rates and return them for further usage in instant update API
961-
* Returns empty array if it was impossible to obtain any shipping rate
962-
* If there are shipping rates obtained, the method must return one of them as default.
965+
*
966+
* Returns empty array if it was impossible to obtain any shipping rate and
967+
* if there are shipping rates obtained, the method must return one of them as default.
963968
*
964969
* @param Address $address
965970
* @param bool $mayReturnEmpty
@@ -1043,8 +1048,8 @@ protected function _prepareShippingOptions(Address $address, $mayReturnEmpty = f
10431048
* Compare two shipping options based on their amounts
10441049
*
10451050
* This function is used as a callback comparison function in shipping options sorting process
1046-
* @see self::_prepareShippingOptions()
10471051
*
1052+
* @see self::_prepareShippingOptions()
10481053
* @param \Magento\Framework\DataObject $option1
10491054
* @param \Magento\Framework\DataObject $option2
10501055
* @return int
@@ -1059,6 +1064,7 @@ protected static function cmpShippingOptions(DataObject $option1, DataObject $op
10591064

10601065
/**
10611066
* Try to find whether the code provided by PayPal corresponds to any of possible shipping rates
1067+
*
10621068
* This method was created only because PayPal has issues with returning the selected code.
10631069
* If in future the issue is fixed, we don't need to attempt to match it. It would be enough to set the method code
10641070
* before collecting shipping rates
@@ -1084,6 +1090,7 @@ protected function _matchShippingMethodCode(Address $address, $selectedCode)
10841090

10851091
/**
10861092
* Create payment redirect url
1093+
*
10871094
* @param bool|null $button
10881095
* @param string $token
10891096
* @return void
@@ -1107,6 +1114,7 @@ public function getCustomerSession()
11071114

11081115
/**
11091116
* Set shipping options to api
1117+
*
11101118
* @param \Magento\Paypal\Model\Cart $cart
11111119
* @param \Magento\Quote\Model\Quote\Address|null $address
11121120
* @return void

0 commit comments

Comments
 (0)