From 7131cd9f3c2918f360e1bbd024c1f23da8623537 Mon Sep 17 00:00:00 2001 From: kilida Date: Tue, 21 Jun 2016 17:52:09 -0400 Subject: [PATCH] Duplicate conditional expression in PayPalCredentialManager.php Looks like this should be `ClientSecret`? --- lib/PayPal/Core/PayPalCredentialManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PayPal/Core/PayPalCredentialManager.php b/lib/PayPal/Core/PayPalCredentialManager.php index adfff8d..77a884e 100644 --- a/lib/PayPal/Core/PayPalCredentialManager.php +++ b/lib/PayPal/Core/PayPalCredentialManager.php @@ -96,7 +96,7 @@ class PayPalCredentialManager $key = $prefix . $suffix; $userName = null; 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; $this->credentialHashmap[$userName] = new OAuthTokenCredential( $credArr[$key . ".ClientId"],