? Success

User tests: Successful: Unsuccessful:

avatar photodude
photodude
27 Jul 2015
  • Fix lower case use of AS
  • Put each item on their own line
avatar photodude photodude - open - 27 Jul 2015
avatar photodude photodude - change - 27 Jul 2015
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 27 Jul 2015
Labels Added: ?
avatar Bakual
Bakual - comment - 27 Jul 2015

I'm not aware of a CS rule to have each field on its own line. There is only one for very long lines, which shouldn't be the case here.

avatar RickR2H
RickR2H - comment - 27 Jul 2015

Works and makes the code much cleaner


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7559.

avatar RickR2H RickR2H - test_item - 27 Jul 2015 - Tested successfully
avatar photodude
photodude - comment - 27 Jul 2015

@Bakual It's not directly addressed in the written portion of the Joomla coding style, But since we comply to many aspects of PSR-2 with some deviations; I choose to follow the explanation for multiple lines in the method and function calls.

Argument lists MAY be split across multiple lines, where each subsequent line is indented once.
When doing so, the first item in the list MUST be on the next line,
and there MUST be only one argument per line.

As @RickR2H said, "it sure makes the code more readable...", I think that's a good thing.

avatar Bakual Bakual - change - 27 Jul 2015
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2015-07-27 12:33:14
Closed_By Bakual
avatar Bakual Bakual - close - 27 Jul 2015
avatar Bakual Bakual - reference | 093ffea - 27 Jul 15
avatar Bakual Bakual - merge - 27 Jul 2015
avatar Bakual Bakual - close - 27 Jul 2015
avatar photodude photodude - head_ref_deleted - 27 Jul 2015
avatar wilsonge wilsonge - change - 27 Jul 2015
Milestone Added:

Add a Comment

Login with GitHub to post a comment