You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHP functions – Function names are all lowercase with words joined by underscores. Prefix each function with bfc_, e.g. bfc_something_cool ().
PHP files – These are all lowercase with words joined by hyphens. New files should get a bfc- prefix. Modified existing files (e.g. buddypress template files) should keep their original names.
I've started this at CI Web DevOps Standards Cheatsheet. Please take a look. In the text I ask for comments but you here should also feel free to just add things.
One of the standards for PHP that's news to me is to end each file with a blank new line. It's just a warning but recommended. My git client Tower is flagging this.
The cheat sheet looks good; I've added some comments.
The newline at the end of each file is a UNIX thing, and its part of Git in general; nothing to do with PHP specifically. We'll set our editors up to take care of this automatically.
We need to gather up all of the standards we've discussed in Game Plan for CI Web Dev/Ops and BFCom style guide (and anywhere else).
It would be great to have a summary cheatsheet at least of the main points.
Here's a start on gathering the standard but not really a cheatsheet yet (which will need more specifics):
I'll start by creating a google doc that we can all contribute to and comment on.
The text was updated successfully, but these errors were encountered: