mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
fix phpstan
This commit is contained in:
parent
69ecc4c743
commit
a7614342cd
|
|
@ -1,7 +1,8 @@
|
|||
<?php
|
||||
/* Copyright (C) 2010-2011 Laurent Destailleur <eldy@users.sourceforge.org>
|
||||
* Copyright (C) 2011 Regis Houssin <regis.houssin@inodbox.com>
|
||||
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
|
||||
/* Copyright (C) 2010-2011 Laurent Destailleur <eldy@users.sourceforge.org>
|
||||
* Copyright (C) 2011 Regis Houssin <regis.houssin@inodbox.com>
|
||||
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
|
||||
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
|
@ -57,22 +58,10 @@ if (getDolGlobalString('PAYPAL_API_SANDBOX') || GETPOST('forcesandbox', 'alpha')
|
|||
}
|
||||
|
||||
// Clean parameters
|
||||
$PAYPAL_API_USER = "";
|
||||
if (getDolGlobalString('PAYPAL_API_USER')) {
|
||||
$PAYPAL_API_USER = getDolGlobalString('PAYPAL_API_USER');
|
||||
}
|
||||
$PAYPAL_API_PASSWORD = "";
|
||||
if (getDolGlobalString('PAYPAL_API_PASSWORD')) {
|
||||
$PAYPAL_API_PASSWORD = getDolGlobalString('PAYPAL_API_PASSWORD');
|
||||
}
|
||||
$PAYPAL_API_SIGNATURE = "";
|
||||
if (getDolGlobalString('PAYPAL_API_SIGNATURE')) {
|
||||
$PAYPAL_API_SIGNATURE = getDolGlobalString('PAYPAL_API_SIGNATURE');
|
||||
}
|
||||
$PAYPAL_API_SANDBOX = "";
|
||||
if (getDolGlobalString('PAYPAL_API_SANDBOX')) {
|
||||
$PAYPAL_API_SANDBOX = getDolGlobalString('PAYPAL_API_SANDBOX');
|
||||
}
|
||||
$PAYPAL_API_USER = getDolGlobalString('PAYPAL_API_USER');
|
||||
$PAYPAL_API_PASSWORD = getDolGlobalString('PAYPAL_API_PASSWORD');
|
||||
$PAYPAL_API_SIGNATURE = getDolGlobalString('PAYPAL_API_SIGNATURE');
|
||||
$PAYPAL_API_SANDBOX = getDolGlobalString('PAYPAL_API_SANDBOX');
|
||||
|
||||
// Proxy
|
||||
$PROXY_HOST = getDolGlobalString('MAIN_PROXY_HOST');
|
||||
|
|
|
|||
|
|
@ -292,7 +292,7 @@ $urlko = preg_replace('/&$/', '', $urlko); // Remove last &
|
|||
';
|
||||
|
||||
if ((empty($paymentmethod) || $paymentmethod == 'paypal') && isModEnabled('paypal')) {
|
||||
global $PAYPAL_API_SANDBOX, $PAYPAL_API_OK, $PAYPAL_API_KO, $PAYPAL_API_PASSWORD, $PAYPAL_API_SIGNATURE;
|
||||
global $PAYPAL_API_SANDBOX, $PAYPAL_API_OK, $PAYPAL_API_KO, $PAYPAL_API_USER, $PAYPAL_API_PASSWORD, $PAYPAL_API_SIGNATURE;
|
||||
require_once DOL_DOCUMENT_ROOT.'/paypal/lib/paypal.lib.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/paypal/lib/paypalfunctions.lib.php';
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user