forked from LiveCarta/PayPal-PHP-SDK
[PSR] Fixed Tests
- Using `php-cs-fixer` tool.
This commit is contained in:
@@ -17,7 +17,6 @@ use PayPal\Api\Authorization;
|
||||
// has expired.
|
||||
|
||||
try {
|
||||
|
||||
$amount = new Amount();
|
||||
$amount->setCurrency("USD");
|
||||
$amount->setTotal(1);
|
||||
@@ -28,7 +27,7 @@ try {
|
||||
$reAuthorization = $authorization->reauthorize($apiContext);
|
||||
} catch (Exception $ex) {
|
||||
// NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY
|
||||
ResultPrinter::printError("Reauthorize Payment", "Payment", null, null, $ex);
|
||||
ResultPrinter::printError("Reauthorize Payment", "Payment", null, null, $ex);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user