Skip to content

Missing phpcbf #6

@djwave28

Description

@djwave28

Installed phpcbf on linux box and added this repo in emacs.

PHP_Beautify works, but puts all functions and docblocks together. Deleting all empty lines.
Option phpcbf is not found at all. It is installed, but the beatify options do not list for phpcbf.
Can the PHP_Beautify be set to keep 1 empty line?

GNU Emacs 26.3

I did some work in the terminal with PHP_Beautify and have a positive result with adding a filter
php_beautifier --input unformatted_file.php --output formatted_file.php -s --filters "NewLines(before=if:switch,after=T_CLASS:T_COMMENT:function:T_DOC_COMMENT)"

I don't know enough about emacs (yet) and since this repo already exists...

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions