? Success

User tests: Successful: Unsuccessful:

avatar zero-24
zero-24
23 Jan 2015

This PR fix CS issues in the build script

avatar zero-24 zero-24 - open - 23 Jan 2015
avatar jissues-bot jissues-bot - change - 23 Jan 2015
Labels Added: ?
avatar zero-24 zero-24 - change - 23 Jan 2015
Easy No Yes
avatar zero-24 zero-24 - change - 23 Jan 2015
Category Code style Repository
avatar Kubik-Rubik
Kubik-Rubik - comment - 25 Jan 2015

@zero-24 Can you please remove the last comma in the array? Thanks!

avatar zero-24
zero-24 - comment - 25 Jan 2015

@zero-24 Can you please remove the last comma in the array? Thanks!

@Kubik-Rubik why? see here for the array example: http://joomla.github.io/coding-standards/?coding-standards/chapters/php.md

Assignments (the => operator) in arrays may be aligned with tabs. 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.

avatar Kubik-Rubik
Kubik-Rubik - comment - 25 Jan 2015

Ugly... ;-) Personally I would not use the commay in the last assignment but of course it is not an error:

Having a trailing comma after the last defined array entry, while unusual, is a valid syntax. (http://php.net/manual/en/function.array.php)

Since it is a no-brainer (just syntax changes) I will merge it PR. Thanks @zero-24!

avatar Kubik-Rubik Kubik-Rubik - reference | - 25 Jan 15
avatar Kubik-Rubik Kubik-Rubik - merge - 25 Jan 2015
avatar Kubik-Rubik Kubik-Rubik - close - 25 Jan 2015
avatar Kubik-Rubik Kubik-Rubik - close - 25 Jan 2015
avatar Kubik-Rubik Kubik-Rubik - change - 25 Jan 2015
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2015-01-25 01:46:07
avatar Kubik-Rubik Kubik-Rubik - change - 25 Jan 2015
Milestone Added:
avatar zero-24
zero-24 - comment - 25 Jan 2015

Thanks @Kubik-Rubik

avatar zero-24 zero-24 - head_ref_deleted - 25 Jan 2015

Add a Comment

Login with GitHub to post a comment