php-code-formatter icon indicating copy to clipboard operation
php-code-formatter copied to clipboard

merges class name with 'extends' keyword

Open marl-scot opened this issue 8 years ago • 0 comments

When formatting the following line : class buildCommand extends Command

The output is : class buildCommandextends Command

Expected output, same as original string The formatter removes the space between the class name and the keyword 'extends' using the following to format the code :

$formatter = new \gossi\formatter\Formatter();
$niceCode = $formatter->format($uglyCode);
echo $niceCode;

Thanks for an otherwise great script :)

marl-scot avatar Jun 14 '17 00:06 marl-scot