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

kenorb created an issue. See original summary.

kenorb’s picture

Status: Active » Closed (duplicate)

It 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)