Coding Style: no underscores for private class members, contrary to PEAR

This commit is contained in:
Arthur Schiwon
2014-02-12 14:07:55 +01:00
parent 3202af0a72
commit 0c42f63133

View File

@@ -65,7 +65,9 @@ All API methods need to be marked with `PHPDoc <http://en.wikipedia.org/wiki/PHP
Objects, Functions, Arrays & Variables
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Use Pascal case for Objects, Camel case for functions and variables. If you set a default function/method parameter, dont use spaces
Use Pascal case for Objects, Camel case for functions and variables. If you set
a default function/method parameter, do not use spaces. Do not prepend private
class members with underscores.
.. code-block:: javascript
@@ -289,7 +291,7 @@ Control Structures
// single line if
if (myVar === 'hi') {
myVar = 'ho';
} else {
} else {
myVar = 'bye';
}