Success

User tests: Successful: Unsuccessful:

avatar mbabker
mbabker
22 Jul 2016

Summary of Changes

Adds support for the PHP-CS-Fixer tool as a means to help programmatically review and correct code style issues in PHP code. This'll cover everything in the cli and src directories.

Testing Instructions

Review the package's documentation to ensure the selected fixers are in line with the project's code style rules and review the changes made to ensure they are consistent with the project's code style rules.

What About PHP_CodeSniffer

This is a tool to be used in addition to PHP_CodeSniffer, especially since Joomla's still using PHPCS 1.x which doesn't support auto-fixing.

avatar mbabker mbabker - open - 22 Jul 2016
avatar elkuku elkuku - change - 23 Jul 2016
Status New Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-07-23 17:08:58
Closed_By elkuku
avatar elkuku elkuku - close - 23 Jul 2016
avatar elkuku elkuku - merge - 23 Jul 2016
avatar elkuku
elkuku - comment - 23 Jul 2016

Not sure if I like the comma on the last line of multi line array declarations, but I guess that I don't have to...

I hope the phpcs-2 team gets some result one of these days, I know they're working hard...

avatar mbabker
mbabker - comment - 23 Jul 2016

The one true benefit to it is when you add elements to an array the last element doesn't end up as part of your diff because a comma was added to the line. Beyond that it's mostly a matter of preference.

avatar elkuku
elkuku - comment - 23 Jul 2016

Oh that's true, haven't thought of diffs.
The only benefit I saw so far is when adding new elements to the array by c&p and not having to add the comma... ?

Add a Comment

Login with GitHub to post a comment