Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm testing the following command phpcbf --standard=Drupal commerce_paypoint/advanced_payments
and the following switch case block:
switch ($vps_data['Status']) {
case 'OK':
watchdog('commerce_paypoint_advanced', 'OK Payment callback received from
PayPoint for order %order_id with status code %status',
array('%order_id' => $order_id,
'%status' => $transaction->payload['Status']));
commerce_paypoint_advanced_transaction($payment_method, $order, $charge,
$vps_data,
COMMERCE_PAYMENT_STATUS_SUCCESS, $vps_data['TxType'],
$transaction);
$notification['status'] = 'OK';
$notification['message'] = t('Transaction notification received.');
break;
is just flatten:
switch ($vps_data['Status']) {
case 'OK':
watchdog('commerce_paypoint_advanced', 'OK Payment callback received from
PayPoint for order %order_id with status code %status',
array('%order_id' => $order_id,
'%status' => $transaction->payload['Status']));
commerce_paypoint_advanced_transaction($payment_method, $order, $charge,
$vps_data,
COMMERCE_PAYMENT_STATUS_SUCCESS, $vps_data['TxType'],
$transaction);
$notification['status'] = 'OK';
$notification['message'] = t('Transaction notification received.');
break;
for some reason.
Comments
Comment #2
kenorb CreditAttribution: kenorb commentedIt was because the code was in the multi-line comment, so it's duplicate of: #2605982: phpcbf breaks wrong multi line @param comments (they shouldn't be flatten)