forked from LiveCarta/PayPal-PHP-SDK
Merge pull request #594 from kilida/patch-1
Duplicate conditional expression in PayPalCredentialManager.php
This commit is contained in:
@@ -96,7 +96,7 @@ class PayPalCredentialManager
|
|||||||
$key = $prefix . $suffix;
|
$key = $prefix . $suffix;
|
||||||
$userName = null;
|
$userName = null;
|
||||||
while (in_array($key, $arrayPartKeys)) {
|
while (in_array($key, $arrayPartKeys)) {
|
||||||
if (isset($credArr[$key . ".ClientId"]) && isset($credArr[$key . ".ClientId"])) {
|
if (isset($credArr[$key . ".ClientId"]) && isset($credArr[$key . ".ClientSecret"])) {
|
||||||
$userName = $key;
|
$userName = $key;
|
||||||
$this->credentialHashmap[$userName] = new OAuthTokenCredential(
|
$this->credentialHashmap[$userName] = new OAuthTokenCredential(
|
||||||
$credArr[$key . ".ClientId"],
|
$credArr[$key . ".ClientId"],
|
||||||
|
|||||||
Reference in New Issue
Block a user