phpowermove / php-code-formatter

A code formatting library for php
MIT License
29 stars 12 forks source link

merges class name with 'extends' keyword #22

Open marl-scot opened 7 years ago

marl-scot commented 7 years ago

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