User tests: Successful: Unsuccessful:
Pull Request for Issue # .
Fix the drone tests failing due to indentation.
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
This is not needed as only two spaces are needed, can you show me a pr why this fails?
It happened with my PR #15075 , too and I had to change docblock in that PR to fix it (make it consistent with other namespaced classes)
I don't know which is the correct rule but right now, none namespaced classes use 3 spaces while the namespaced classes only use 2 spaces
Strange, then the other files must be showed with an error as well, eg. https://github.com/joomla/joomla-cms/blob/4.0-dev/libraries/src/Cms/Authentication/AuthenticationHelper.php . Not sure if there is something broken with the code style checker or what. But on 3.8 they were all green https://github.com/joomla/joomla-cms/pull/15070/files.
FWIW the standard in file and class doc blocks is two spaces after the longest tag name to align all text.
In method/function doc blocks @param
requires 3 spaces and @return
requires 2 spaces (for the same alignment reason). Funny enough, spacing for any other tags (@since
, @deprecated
, etc.) isn't enforced in method/function blocks. But across the board it should always be two spaces after the tag minimum.
When you compare the file in the 3.8 branch https://github.com/joomla/joomla-cms/blob/3.8-dev/libraries/src/Joomla/CMS/Controller/Admin.php and the one in the 4 branch https://github.com/joomla/joomla-cms/blob/4.0-dev/libraries/src/Cms/Controller/Admin.php. Then the headers are different. I guess something with the merge went wrong. The @packages are not needed according to @mbabker, or?
Could someone please make decision about this? Otherwise every PR to 4.0-dev branch will get CS error
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-04-07 12:42:31 |
Closed_By | ⇒ | C-Lodder | |
Labels |
Added:
?
|
will close this and let someone fix it in 3.8-dev or wait for 3.8-dev to be merged into 4.0-dev properly.
@mbabker or @laoneo is this ok or does it need to go into the 3.8-dev branch?