Yeah, this has gotten pretty frustrating, because sometimes even in the same function different styles are used. We need to stick with one. I'd recommend using the spacey version, because we use the non-spacey version for function calls and definitions, so at least IMO it's a good way to distinguish control structures from functions.
*--* *Tyler Romeo* Stevens Institute of Technology, Class of 2015 Major in Computer Science www.whizkidztech.com | tylerromeo@gmail.com
On Tue, Jan 22, 2013 at 2:07 PM, bawolff bawolff+wn@gmail.com wrote:
On 2013-01-22 3:01 PM, "Brad Jorsch" bjorsch@wikimedia.org wrote:
Our coding conventions for PHP are currently ambivalent on whether we should write "if (" or "if(". It's probably time to pick one.
Discussion at
https://www.mediawiki.org/wiki/Manual_talk:Coding_conventions/PHP#Control_st...
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
For some reason I thought the spacy version was the convention. Guess its never really been specified.
Also wasn't the stuff about efFuncName that I see in the current coding convention doc reverted out a while back for not being a "real" (recommended) convention?
-bawolff _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l