Skip to content

Conversation

@kenguest
Copy link

@kenguest kenguest commented Sep 9, 2014

Some filters weren't being included when installing php_beautifier via PEAR.

This pull-request fixes this issue.

@kenguest
Copy link
Author

kenguest commented Sep 9, 2014

I've also added a --list command so that the php_beautifier cli script can list found/added filters.
Output looks like the following:

kguest@radagast:~/dev/code/PHP_Beautifier$ php scripts/php_beautifier -i 

The installed PHP_Beautifier filters are:

ArrayNested               - Filter for PHP_Beautifier
BreakLongLists            - Break long arrays, function definitions and function calls
Default                   - Default Filter for PHP_Beautifier
DocBlock                  - Filter for PHP_Beautifier
EqualsAlign               - Filter for PHP_Beautifier
Fluent                    - Filter for PHP_Beautifier
IndentStyles              - Filter the code in 4 different indent styles: K&R, Allman, Whitesmiths and GNU
KeepEmptyLines            - Keep a single empty line where empty lines can be found
ListClassFunction         - Create a list of functions and classes in the script
Lowercase                 - Lowercase all control structures. Parse the output with another Filters
NewLines                  - Add new lines after or before specific contents
Pear                      - Filter the code to make it compatible with PEAR Coding Specs
SpaceOpAssignments        - Add space before operator+assignments
phpBB                     - Filter the code to make it compatible with phpBB Coding Standards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant