Browse Source

added info about function braces to code style

tags/2.0.0-beta
Alexander Makarov 13 years ago
parent
commit
6e592f032f
  1. 1
      docs/code_style.md

1
docs/code_style.md

@ -152,6 +152,7 @@ It's preferrable to define class level constants rather than global ones.
- Name should be descriptive by itself indicating the purpose of the function.
- Class methods should always declare visibility using `private`, `protected` and
`public` modifiers. `var` is not allowed.
- Opening brace of a function should be on the line after the function declaration.
~~~
/**

Loading…
Cancel
Save