forked from LiveCarta/PayPal-PHP-SDK
[PSR] Fixed library source
- Using `php-cs-fixer` tool.
This commit is contained in:
@@ -78,9 +78,9 @@ class OauthHandler implements IPayPalHandler
|
||||
{
|
||||
if (isset($config['oauth.EndPoint'])) {
|
||||
$baseEndpoint = $config['oauth.EndPoint'];
|
||||
} else if (isset($config['service.EndPoint'])) {
|
||||
} elseif (isset($config['service.EndPoint'])) {
|
||||
$baseEndpoint = $config['service.EndPoint'];
|
||||
} else if (isset($config['mode'])) {
|
||||
} elseif (isset($config['mode'])) {
|
||||
switch (strtoupper($config['mode'])) {
|
||||
case 'SANDBOX':
|
||||
$baseEndpoint = PayPalConstants::REST_SANDBOX_ENDPOINT;
|
||||
|
||||
@@ -47,7 +47,6 @@ class RestHandler implements IPayPalHandler
|
||||
*/
|
||||
public function handle($httpConfig, $request, $options)
|
||||
{
|
||||
|
||||
$credential = $this->apiContext->getCredential();
|
||||
$config = $this->apiContext->getConfig();
|
||||
|
||||
@@ -105,7 +104,7 @@ class RestHandler implements IPayPalHandler
|
||||
{
|
||||
if (isset($config['service.EndPoint'])) {
|
||||
return $config['service.EndPoint'];
|
||||
} else if (isset($config['mode'])) {
|
||||
} elseif (isset($config['mode'])) {
|
||||
switch (strtoupper($config['mode'])) {
|
||||
case 'SANDBOX':
|
||||
return PayPalConstants::REST_SANDBOX_ENDPOINT;
|
||||
|
||||
Reference in New Issue
Block a user