Don't add dot with inline comments containing code with semicolon

Created on 3 November 2015, over 8 years ago
Updated 22 June 2023, about 1 year ago

This code:

    //$transaction->payload['vps_status'] = 'TIMEOUT';

is converted into:

    // $transaction->payload['vps_status'] = 'TIMEOUT';.

with dot at the end.

Tested with command: phpcbf --standard=Drupal .

Other example:

  //dsm($vars['day_items']);

into:

  // dsm($vars['day_items']);.

So my suggestion is to not add the dot, when there is already some punctuation at the end (such as semicolon, or comma, etc.), so at the same time it'll solve the problem with adding dot at the end of the PHP code.

πŸ› Bug report
Status

Active

Version

2.0

Component

Review/Rules

Created by

πŸ‡¬πŸ‡§United Kingdom kenorb

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024