... | @@ -104,12 +104,19 @@ class FooBar implements MySimpleInterface { |
... | @@ -104,12 +104,19 @@ class FooBar implements MySimpleInterface { |
|
### Naming Conventions
|
|
### Naming Conventions
|
|
|
|
|
|
* Use camelCase, not underscores, for variable, function and method names, arguments;
|
|
* Use camelCase, not underscores, for variable, function and method names, arguments;
|
|
|
|
|
|
* Use underscores for array keys, option names and parameter names;
|
|
* Use underscores for array keys, option names and parameter names;
|
|
|
|
|
|
* Use namespaces for all classes;
|
|
* Use namespaces for all classes;
|
|
* Prefix abstract classes with Abstract.
|
|
|
|
|
|
* Prefix abstract classes with Abstract;
|
|
|
|
|
|
* Suffix interfaces with Interface;
|
|
* Suffix interfaces with Interface;
|
|
|
|
|
|
* Suffix traits with Trait;
|
|
* Suffix traits with Trait;
|
|
|
|
|
|
* Suffix exceptions with Exception;
|
|
* Suffix exceptions with Exception;
|
|
|
|
|
|
* Use alphanumeric characters and underscores for file names;
|
|
* Use alphanumeric characters and underscores for file names;
|
|
|
|
|
|
|
|
|
... | | ... | |