enumerations.xml Amend the CS of the code examples#4088
Conversation
|
Changes in this PR are made to the pages in this section: https://www.php.net/manual/en/language.enumerations.php |
I was guided by the reader and how convenient it would be for the user to read the example. I'm going back to the previous formatting, since it violates the tradition :)
|
I see no point in adding newlines before |
|
Please remove the newlines before |
|
The conflicts in this PR (#5479) are caused by a recent revision that enabled WASM for examples. So it would need another rebase.. I don't think changing code styles for examples on it's own gives any benefits the docs. The docs don't follow any code style guidelines other than it should be understandable for a developer. Adding whitespaces or newlines don't really give any reasonable benefits to this. For that reason I don't see any valid reason to make this change. @tiffany-taylor / @Crell any thoughts on this? |
|
Ideally code blocks should follow PER-CS, though the degree to which it's worth it to apply those to pre-existing code blocks is debatable. (The whole docs is very inconsistent on just about everything, as many people reject the idea of updating it to current conventions for fear of making more noise for translators.) |
Ah I see, it is in fact explicitly written in the style docs. Though I have seen differences in opinion. I prefer to do the Anyway, since it's a relatively small change I have no objections to merge this. Still need to do a rebase I'm afraid. |
No description provided.