pretty-php icon indicating copy to clipboard operation
pretty-php copied to clipboard

Double spaces before comments on the end of the code line

Open ili101 opened this issue 2 years ago • 1 comments

pretty-php adds 2 spaces before the comment. expected 1. Not sure if this is intentional, but I've never seen this style before.

<?php

class Example
{
    public int $test = 0;  // This is a test.

    public function example()
    {
        $this->test = 1;  // This is a test.
    }
}

ili101 avatar Feb 06 '24 18:02 ili101

I think this is inspired by Black's behaviour, because that tool also adds two spaces before a comment instead of just one.

krzysztof-sikorski avatar Oct 11 '25 19:10 krzysztof-sikorski