? Success

User tests: Successful: Unsuccessful:

avatar zero-24
zero-24
5 Mar 2015

This PR let the com_installer manager helper follow our codestyle.

I don't think here is testing required. I hope this can be merged on Review by PLT / Maintainer :smile: Else let me know.

avatar zero-24 zero-24 - open - 5 Mar 2015
avatar joomla-cms-bot joomla-cms-bot - change - 5 Mar 2015
Labels Added: ?
avatar infograf768
infograf768 - comment - 5 Mar 2015

Just saw that you added a comma in the last part of the arrays (and also in your PR towards mine).
Are you sure this is correct?

-   'protected'
+   'protected',
avatar zero-24
zero-24 - comment - 5 Mar 2015

Just saw that you added a comma in the last part of the arrays (and also in your PR towards mine).
Are you sure this is correct?

Yes :smile:

The comma after the last array element is optional and can be omitted. This is usually done for single-line arrays, i.e. array(1, 2) is preferred over array(1, 2, ). For multi-line arrays on the other hand the trailing comma is commonly used, as it allows easier addition of new elements at the end.

http://php.net/manual/en/language.types.array.php

and

When splitting array definitions onto several lines, the last value may also have a trailing comma. This is valid PHP syntax and helps to keep code diffs minimal.

http://joomla.github.io/coding-standards/?coding-standards/chapters/php.md

avatar infograf768
infograf768 - comment - 5 Mar 2015

Great!

avatar brianteeman brianteeman - change - 5 Mar 2015
Category Code style
avatar wilsonge wilsonge - change - 5 Mar 2015
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2015-03-05 11:30:42
avatar wilsonge wilsonge - close - 5 Mar 2015
avatar wilsonge wilsonge - reference | - 5 Mar 15
avatar wilsonge wilsonge - merge - 5 Mar 2015
avatar wilsonge wilsonge - close - 5 Mar 2015
avatar wilsonge wilsonge - change - 5 Mar 2015
Milestone Added:
avatar zero-24 zero-24 - head_ref_deleted - 5 Mar 2015

Add a Comment

Login with GitHub to post a comment