remove superfluous spaces

This commit is contained in:
Frédéric FRANCE 2018-09-21 12:19:59 +02:00 committed by GitHub
parent 7ece28ffd3
commit b064b580b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -161,25 +161,27 @@ if (! $rowid) {
print '<tr class="oddeven">'; print '<tr class="oddeven">';
// Ref // Ref
if (!empty($stripeacc)) $connect=$stripeacc.'/'; if (!empty($stripeacc)) $connect=$stripeacc.'/';
// Ref // Ref
if (preg_match('/po_/i', $txn->source)){ if (preg_match('/po_/i', $txn->source)){
$origin="payouts"; $origin="payouts";
} elseif (preg_match('/fee_/i', $txn->source)) { } elseif (preg_match('/fee_/i', $txn->source)) {
$origin="connect/application_fees"; $origin="connect/application_fees";
} else { } else {
$origin="payments"; $origin="payments";
} }
$url='https://dashboard.stripe.com/'.$connect.'test/'.$origin.'/'.$txn->source; $url='https://dashboard.stripe.com/'.$connect.'test/'.$origin.'/'.$txn->source;
if ($servicestatus) if ($servicestatus)
{ {
$url='https://dashboard.stripe.com/'.$connect.$origin.'/'.$txn->source; $url='https://dashboard.stripe.com/'.$connect.$origin.'/'.$txn->source;
} }
if ($txn->type == 'stripe_fee' || $txn->type == 'reserve_transaction') { if ($txn->type == 'stripe_fee' || $txn->type == 'reserve_transaction') {
print "<td>".$txn->type."</td>"; print "<td>".$txn->type."</td>";
} else print "<td><a href='".$url."' target='_stripe'>".img_picto($langs->trans('ShowInStripe'), 'object_globe')." " . $txn->source . "</a></td>\n"; } else {
print "<td><a href='".$url."' target='_stripe'>".img_picto($langs->trans('ShowInStripe'), 'object_globe')." " . $txn->source . "</a></td>\n";
}
// Stripe customer // Stripe customer
//print "<td>".$charge->customer."</td>\n"; //print "<td>".$charge->customer."</td>\n";
@ -216,11 +218,11 @@ if (! $rowid) {
// Status // Status
print "<td align='right'>"; print "<td align='right'>";
if ($txn->status=='available') if ($txn->status=='available')
{print img_picto($langs->trans("".$txn->status.""),'statut4');} {print img_picto($langs->trans("".$txn->status.""),'statut4');}
elseif ($txn->status=='pending') elseif ($txn->status=='pending')
{print img_picto($langs->trans("".$txn->status.""),'statut7');} {print img_picto($langs->trans("".$txn->status.""),'statut7');}
elseif ($txn->status=='failed') elseif ($txn->status=='failed')
{print img_picto($langs->trans("".$txn->status.""),'statut8');} {print img_picto($langs->trans("".$txn->status.""),'statut8');}
print '</td>'; print '</td>';
print "</tr>\n"; print "</tr>\n";
} }