Skip to content

Commit a166988

Browse files
committed
triv: refactor
1 parent b60ded5 commit a166988

File tree

6 files changed

+286
-247
lines changed

6 files changed

+286
-247
lines changed

generate_openapi_models.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@ rm -rf ./tmp-openapi
1818
echo "Adding custom Model classes from backup..."
1919
cp ./lib/ModelBackup/TokenSuccessResponseType.php ./lib/Model
2020
cp ./lib/ModelBackup/QRStatus.php ./lib/Model
21-
cp ./lib/ModelBackup/PaymentIntentStatusResponse.php ./lib/Model
22-
cp ./lib/ModelBackup/PaymentMethod.php ./lib/Model
2321
cp ./lib/ModelBackup/PaymentMethodRules.php ./lib/Model
2422

23+
echo "********************************"
2524
echo "Verify new Model files by running tests -> phpunit --bootstrap vendor/autoload.php tests/tests.php"
2625
echo "Ensure env variables TATRAPAY_CLIENT_ID and TATRAPAY_CLIENT_SECRET are set before running tests"
2726
echo "If successful, remove old Model files backup (dir ./lib/ModelBackup)"

lib/MagentoCurlClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class MagentoCurlClient {
66
public $logger;
77

88
public function __construct( $logger, $scopeConfig ) {
9-
if ( !is_null($scopeConfig) && $scopeConfig->getValue('payment/tatrapayplus/enable_debug_log') == "1" ) {
9+
if ( $scopeConfig->getValue('payment/tatrapayplus/enable_debug_log') == "1" ) {
1010
$this->logger = $logger;
1111
} else {
1212
$this->logger = null;

0 commit comments

Comments
 (0)