summaryrefslogtreecommitdiff
path: root/modules/polar_rose/helpers/polar_rose_block.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-01-14 04:12:02 +0000
committerBharat Mediratta <bharat@menalto.com>2009-01-14 04:12:02 +0000
commitf3ba69c1d67c425ffa180d082a373e5cce0c86ce (patch)
tree5ecbbe0ba96a94e3f4aadd26042c8ad1a32ef1bc /modules/polar_rose/helpers/polar_rose_block.php
parent02af2d8b7639fdc18fba3d69a4ca0a3f5c92b948 (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/polar_rose/helpers/polar_rose_block.php')
-rw-r--r--modules/polar_rose/helpers/polar_rose_block.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/polar_rose/helpers/polar_rose_block.php b/modules/polar_rose/helpers/polar_rose_block.php
index 659181ac..85486917 100644
--- a/modules/polar_rose/helpers/polar_rose_block.php
+++ b/modules/polar_rose/helpers/polar_rose_block.php
@@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
class polar_rose_block_Core {
- public static function head($theme) {
+ static function head($theme) {
if (module::is_installed("media_rss")) {
if ($theme->item()) {
$url = media_rss::item_feed($theme->item());
@@ -44,7 +44,7 @@ class polar_rose_block_Core {
}
}
- public static function page_bottom($theme) {
+ static function page_bottom($theme) {
return "<div id=\"gPolarRose\"></div>";
}
}