diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-01-14 04:12:02 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-01-14 04:12:02 +0000 |
commit | f3ba69c1d67c425ffa180d082a373e5cce0c86ce (patch) | |
tree | 5ecbbe0ba96a94e3f4aadd26042c8ad1a32ef1bc /modules/user/helpers/user_event.php | |
parent | 02af2d8b7639fdc18fba3d69a4ca0a3f5c92b948 (diff) |
Make sure that helper functions are all static. Add new
File_Structure_Test to make sure we don't regress.
According to the PHP docs, the "public" keyword is implied on static
functions, so remove it. Also, require private static functions to
start with an _.
http://php.net/manual/en/language.oop5.visibility.php
Diffstat (limited to 'modules/user/helpers/user_event.php')
-rw-r--r-- | modules/user/helpers/user_event.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/user/helpers/user_event.php b/modules/user/helpers/user_event.php index 2d1ce171..21848e2e 100644 --- a/modules/user/helpers/user_event.php +++ b/modules/user/helpers/user_event.php @@ -21,7 +21,7 @@ class user_event_Core { /** * Initialization. */ - public static function gallery_ready() { + static function gallery_ready() { user::load_user(); } } |