diff options
Diffstat (limited to 'user_guide/general/styleguide.html')
-rw-r--r-- | user_guide/general/styleguide.html | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/user_guide/general/styleguide.html b/user_guide/general/styleguide.html index 7b7d837d9..f30f45529 100644 --- a/user_guide/general/styleguide.html +++ b/user_guide/general/styleguide.html @@ -161,7 +161,7 @@ echo "Here's my code!"; <h2><a name="class_and_method_naming"></a>Class and Method Naming</h2> <div class="guidelineDetails"> - <p>Class names should always have their first letter uppercase, and the constructor method should match identically. Multiple words should be separated with an underscore, and not CamelCased. All other class methods should be entirely lowercased and named to clearly indicate their function, preferably including a verb. Try to avoid overly long and verbose names.</p> + <p>Class names should always start with an uppercase letter. Multiple words should be separated with an underscore, and not CamelCased. All other class methods should be entirely lowercased and named to clearly indicate their function, preferably including a verb. Try to avoid overly long and verbose names.</p> <code><strong>INCORRECT</strong>: class superclass @@ -170,11 +170,10 @@ class SuperClass <strong>CORRECT</strong>: class Super_class</code> - <p>Notice that the Class and constructor methods are identically named and cased:</p> <code>class Super_class { - function Super_class() + function __construct() { } |