From fa2d202970c5620726f5387a26dd878a26ce0d79 Mon Sep 17 00:00:00 2001 From: Xiaolei Wheelock Date: Thu, 4 May 2017 11:03:33 -0500 Subject: [PATCH] Remove unnecessary check --- lib/PayPal/Api/Payment.php | 2 +- mskrpqzz.osv.txt | 14 -------------- 2 files changed, 1 insertion(+), 15 deletions(-) delete mode 100644 mskrpqzz.osv.txt diff --git a/lib/PayPal/Api/Payment.php b/lib/PayPal/Api/Payment.php index 4ac9ef4..3197485 100644 --- a/lib/PayPal/Api/Payment.php +++ b/lib/PayPal/Api/Payment.php @@ -554,7 +554,7 @@ class Payment extends PayPalResourceModel { $parameter_name = "token"; parse_str(parse_url($this->getApprovalLink(), PHP_URL_QUERY), $query); - return (!isset($query[$parameter_name]) || is_null($query[$parameter_name])) ? null : $query[$parameter_name]; + return !isset($query[$parameter_name]) ? null : $query[$parameter_name]; } /** diff --git a/mskrpqzz.osv.txt b/mskrpqzz.osv.txt deleted file mode 100644 index d71f6b1..0000000 --- a/mskrpqzz.osv.txt +++ /dev/null @@ -1,14 +0,0 @@ -Add getToken() to Payment class to get the EC token from the Approval URL - -# Please enter the commit message for your changes. Lines starting -# with '#' will be ignored, and an empty message aborts the commit. -# -# Date: Tue May 2 14:10:00 2017 -0500 -# -# On branch master -# Your branch is up-to-date with 'origin/master'. -# -# Changes to be committed: -# modified: lib/PayPal/Api/Payment.php -# -