forked from LiveCarta/PayPal-PHP-SDK
[PSR] Fixed Tests
- Using `php-cs-fixer` tool.
This commit is contained in:
@@ -53,7 +53,7 @@ try {
|
||||
$createProfileResponse = $webProfile->create($apiContext);
|
||||
} catch (\PayPal\Exception\PayPalConnectionException $ex) {
|
||||
// NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY
|
||||
ResultPrinter::printError("Created Web Profile", "Web Profile", null, $request, $ex);
|
||||
ResultPrinter::printError("Created Web Profile", "Web Profile", null, $request, $ex);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ try {
|
||||
$webProfile->delete($apiContext);
|
||||
} catch (\PayPal\Exception\PayPalConnectionException $ex) {
|
||||
// NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY
|
||||
ResultPrinter::printError("Deleted Web Profile", "Web Profile", $createProfileResponse->getId(), null, $ex);
|
||||
ResultPrinter::printError("Deleted Web Profile", "Web Profile", $createProfileResponse->getId(), null, $ex);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ try {
|
||||
$webProfile = \PayPal\Api\WebProfile::get($createProfileResponse->getId(), $apiContext);
|
||||
} catch (\PayPal\Exception\PayPalConnectionException $ex) {
|
||||
// NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY
|
||||
ResultPrinter::printError("Get Web Profile", "Web Profile", $webProfile->getId(), null, $ex);
|
||||
ResultPrinter::printError("Get Web Profile", "Web Profile", $webProfile->getId(), null, $ex);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ try {
|
||||
$list = \PayPal\Api\WebProfile::get_list($apiContext);
|
||||
} catch (\PayPal\Exception\PayPalConnectionException $ex) {
|
||||
// NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY
|
||||
ResultPrinter::printError("Get List of All Web Profiles", "Web Profiles", null, null, $ex);
|
||||
ResultPrinter::printError("Get List of All Web Profiles", "Web Profiles", null, null, $ex);
|
||||
exit(1);
|
||||
}
|
||||
$result = '';
|
||||
|
||||
@@ -38,7 +38,7 @@ try {
|
||||
}
|
||||
} catch (\Exception $ex) {
|
||||
// NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY
|
||||
ResultPrinter::printError("Partially Updated Web Profile", "Web Profile", $webProfile->getId(), $patches, $ex);
|
||||
ResultPrinter::printError("Partially Updated Web Profile", "Web Profile", $webProfile->getId(), $patches, $ex);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ try {
|
||||
}
|
||||
} catch (\Exception $ex) {
|
||||
// NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY
|
||||
ResultPrinter::printError("Updated Web Profile", "Web Profile", $webProfile->getId(), $webProfile, $ex);
|
||||
ResultPrinter::printError("Updated Web Profile", "Web Profile", $webProfile->getId(), $webProfile, $ex);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user