pretty-php
pretty-php copied to clipboard
Details differ between `symfony` preset and PHP Coding Standards Fixer
I have compared --preset symfony with PHP CS Fixer and found two minor differences. I thought you may be interested.
Original
<?php declare(strict_types=1);
final class Foo {
public static function bar() { }
}
pretty-php v0.4.66-d7e66927
<?php declare(strict_types=1);
final class Foo
{
public static function bar() {}
}
PHP CS Fixer 3.62.0 (1ce9e24)
<?php
declare(strict_types=1);
final class Foo
{
public static function bar()
{
}
}