diff options
author | Dominik Eckelmann <deckelmann@gmail.com> | 2012-11-29 16:06:43 +0100 |
---|---|---|
committer | Dominik Eckelmann <deckelmann@gmail.com> | 2012-11-29 16:06:43 +0100 |
commit | 38479cbba628ee76a92ff5f3c974cfa8e6ce9e61 (patch) | |
tree | 710a0bca9a6f0704903f295bf6237807685d53fa /lib/plugins/popularity/helper.php | |
parent | 818f6d5179dd55f43e04269bc03e0afd5459c27e (diff) | |
download | rpg-38479cbba628ee76a92ff5f3c974cfa8e6ce9e61.tar.gz rpg-38479cbba628ee76a92ff5f3c974cfa8e6ce9e61.tar.bz2 |
some coding style improvements
- removed some dead/unused code
- fixed phpdoc
- added typing on methods
Diffstat (limited to 'lib/plugins/popularity/helper.php')
-rw-r--r-- | lib/plugins/popularity/helper.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/plugins/popularity/helper.php b/lib/plugins/popularity/helper.php index 34521021d..5bbeddba0 100644 --- a/lib/plugins/popularity/helper.php +++ b/lib/plugins/popularity/helper.php @@ -29,6 +29,8 @@ class helper_plugin_popularity extends Dokuwiki_Plugin { */ var $popularityLastSubmitFile; + var $version; + function helper_plugin_popularity(){ global $conf; @@ -69,7 +71,7 @@ class helper_plugin_popularity extends Dokuwiki_Plugin { /** * Check if autosubmit is enabled - * @return TRUE if we should send data once a month, FALSE otherwise + * @return boolean TRUE if we should send data once a month, FALSE otherwise */ function isAutoSubmitEnabled(){ return @file_exists($this->autosubmitFile); @@ -78,7 +80,7 @@ class helper_plugin_popularity extends Dokuwiki_Plugin { /** * Send the data, to the submit url * @param string $data The popularity data - * @return An empty string if everything worked fine, a string describing the error otherwise + * @return string An empty string if everything worked fine, a string describing the error otherwise */ function sendData($data){ $error = ''; @@ -102,7 +104,7 @@ class helper_plugin_popularity extends Dokuwiki_Plugin { /** * Gather all information - * @return The popularity data as a string + * @return string The popularity data as a string */ function gatherAsString(){ $data = $this->_gather(); @@ -119,7 +121,7 @@ class helper_plugin_popularity extends Dokuwiki_Plugin { /** * Gather all information - * @return The popularity data as an array + * @return array The popularity data as an array */ function _gather(){ global $conf; |