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/config | |
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/config')
-rw-r--r-- | lib/plugins/config/settings/config.class.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/plugins/config/settings/config.class.php b/lib/plugins/config/settings/config.class.php index 8c48018d7..a30a0605b 100644 --- a/lib/plugins/config/settings/config.class.php +++ b/lib/plugins/config/settings/config.class.php @@ -369,7 +369,7 @@ if (!class_exists('setting')) { * update setting with user provided value $input * if value fails error check, save it * - * @return true if changed, false otherwise (incl. on error) + * @return boolean true if changed, false otherwise (incl. on error) */ function update($input) { if (is_null($input)) return false; @@ -426,7 +426,6 @@ if (!class_exists('setting')) { if ($fmt=='php') { // translation string needs to be improved FIXME - $tr = array("\n"=>'\n', "\r"=>'\r', "\t"=>'\t', "\\" => '\\\\', "'" => '\\\''); $tr = array("\\" => '\\\\', "'" => '\\\''); $out = '$'.$var."['".$this->_out_key()."'] = '".strtr($this->_local, $tr)."';\n"; @@ -538,7 +537,7 @@ if (!class_exists('setting_email')) { * update setting with user provided value $input * if value fails error check, save it * - * @return true if changed, false otherwise (incl. on error) + * @return boolean true if changed, false otherwise (incl. on error) */ function update($input) { if (is_null($input)) return false; @@ -574,7 +573,7 @@ if (!class_exists('setting_richemail')) { * update setting with user provided value $input * if value fails error check, save it * - * @return true if changed, false otherwise (incl. on error) + * @return boolean true if changed, false otherwise (incl. on error) */ function update($input) { if (is_null($input)) return false; |