Fix phpcs

This commit is contained in:
Laurent Destailleur 2018-03-08 20:59:23 +01:00
parent b7557db30a
commit 2cd0122d34
3 changed files with 13 additions and 13 deletions

View File

@ -68,7 +68,7 @@ else
$service = 'StripeLive';
}
$stripeaccount = $stripe->GetStripeAccount($service);
$stripeaccount = $stripe->getStripeAccount($service);
if (empty($stripeaccount))
{
print $langs->trans('ErrorStripeAccountNotDefined');

View File

@ -52,12 +52,12 @@ class Stripe extends CommonObject
/**
* GetStripeAccount
* Return stripe account
*
* @param string $mode 'StripeTest' or 'StripeLive'
* @return int ???
*/
public function GetStripeAccount($mode='StripeTest')
public function getStripeAccount($mode='StripeTest')
{
global $conf;
@ -90,12 +90,12 @@ class Stripe extends CommonObject
}
/**
* GetStripeCustomerAccount
* getStripeCustomerAccount
*
* @param int $id ???
* @return int ???
*/
public function GetStripeCustomerAccount($id)
public function getStripeCustomerAccount($id)
{
global $conf;
@ -122,13 +122,13 @@ class Stripe extends CommonObject
/**
* CustomerStripe
* customerStripe
*
* @param int $id ???
* @param string $key ???
* @return \Stripe\StripeObject|\Stripe\ApiResource
*/
public function CustomerStripe($id,$key)
public function customerStripe($id,$key)
{
global $conf;
if (empty($conf->global->STRIPECONNECT_LIVE)) {
@ -186,7 +186,7 @@ class Stripe extends CommonObject
}
/**
* CreatePaymentStripe
* createPaymentStripe
*
* @param unknown $amount ???
* @param unknown $currency ???
@ -197,7 +197,7 @@ class Stripe extends CommonObject
* @param unknown $account ???
* @return Stripe
*/
public function CreatePaymentStripe($amount, $currency, $origin, $item, $source, $customer, $account)
public function createPaymentStripe($amount, $currency, $origin, $item, $source, $customer, $account)
{
global $conf;
if (empty($conf->global->STRIPECONNECT_LIVE)) {
@ -299,7 +299,7 @@ class Stripe extends CommonObject
} elseif ($charge->source->type == 'three_d_secure') {
$stripe = new Stripe($this->db);
$src = \Stripe\Source::retrieve("" . $charge->source->three_d_secure->card . "", array(
"stripe_account" => $stripe->GetStripeAccount($conf->entity)
"stripe_account" => $stripe->getStripeAccount($conf->entity)
));
$return->message = $src->card->brand . " ****" . $src->card->last4;
} else {

View File

@ -62,10 +62,10 @@ if (! empty($conf->stripe->enabled) && (empty($conf->global->STRIPE_LIVE) || emp
}
else
{
$servie = 'StripeLive';
$service = 'StripeLive';
}
$stripeaccount = $stripe->GetStripeAccount($service);
$stripeaccount = $stripe->getStripeAccount($service);
if (empty($stripeaccount))
{
print $langs->trans('ErrorStripeAccountNotDefined');
@ -101,7 +101,7 @@ if (! $rowid && $stripeaccount) {
print "</TR>\n";
$stripeaccount = $stripe->GetStripeAccount($conf->entity);
$stripeaccount = $stripe->getStripeAccount($service);
$txn = \Stripe\BalanceTransaction::all(array("limit" => $limit), array("stripe_account" => $stripeaccount));