php-code-formatter
php-code-formatter copied to clipboard
merges class name with 'extends' keyword
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 :)