diff --git a/phpBB/docs/coding-guidelines.html b/phpBB/docs/coding-guidelines.html index e34e1d9929..f340b671cc 100644 --- a/phpBB/docs/coding-guidelines.html +++ b/phpBB/docs/coding-guidelines.html @@ -696,6 +696,26 @@ switch ($mode) } +
Use the explicit visibility qualifiers public
, private
and protected
for all properties instead of var
.
+
+
Place the static
qualifier before the visibility qualifiers.
//Wrong
++var $x; +private static function f() +
// Right
++public $x; +static private function f() +
Prefer class constants over global constants created with define()
.