From fab57e163ec71eec3f082832940936fc2a6de5cf Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 21 Sep 2018 14:52:06 +0200 Subject: [PATCH] Fix phpcs --- htdocs/stripe/transaction.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/htdocs/stripe/transaction.php b/htdocs/stripe/transaction.php index 595583a63f1..10aac121e0b 100644 --- a/htdocs/stripe/transaction.php +++ b/htdocs/stripe/transaction.php @@ -159,10 +159,10 @@ if (! $rowid) { $societestatic->societe_id = $obj->fk_soc; print ''; - + // Ref if (!empty($stripeacc)) $connect=$stripeacc.'/'; - + // Ref if (preg_match('/po_/i', $txn->source)){ $origin="payouts"; @@ -178,8 +178,8 @@ if (! $rowid) { $url='https://dashboard.stripe.com/'.$connect.$origin.'/'.$txn->source; } if ($txn->type == 'stripe_fee' || $txn->type == 'reserve_transaction') { - print "".$txn->type.""; - } else print "".img_picto($langs->trans('ShowInStripe'), 'object_globe')." " . $txn->source . "\n"; + print "".$txn->type.""; + } else print "".img_picto($langs->trans('ShowInStripe'), 'object_globe')." " . $txn->source . "\n"; // Stripe customer //print "".$charge->customer."\n"; @@ -216,11 +216,11 @@ if (! $rowid) { // Status print ""; if ($txn->status=='available') - {print img_picto($langs->trans("".$txn->status.""),'statut4');} + {print img_picto($langs->trans("".$txn->status.""),'statut4');} elseif ($txn->status=='pending') {print img_picto($langs->trans("".$txn->status.""),'statut7');} elseif ($txn->status=='failed') - {print img_picto($langs->trans("".$txn->status.""),'statut8');} + {print img_picto($langs->trans("".$txn->status.""),'statut8');} print ''; print "\n"; }