diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-02-26 13:10:46 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-02-26 13:10:46 +0100 |
commit | 9847912257de1910f99879caac8ea925fb85caed (patch) | |
tree | 026d8ce83a014e544f262a13b8ef4a271d0bb1ff /settings/admin | |
parent | 331bd527a7d130ec050018e971f1d42f9ea35a5b (diff) | |
download | nextcloud-server-9847912257de1910f99879caac8ea925fb85caed.tar.gz nextcloud-server-9847912257de1910f99879caac8ea925fb85caed.zip |
Remove unused variables, add doc blocks and break lines
Fix #7166
Diffstat (limited to 'settings/admin')
-rw-r--r-- | settings/admin/controller.php | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/settings/admin/controller.php b/settings/admin/controller.php index 9bbcd356580..a075d774361 100644 --- a/settings/admin/controller.php +++ b/settings/admin/controller.php @@ -20,7 +20,10 @@ namespace OC\Settings\Admin; class Controller { - public static function setMailSettings($args) { + /** + * Set mail settings + */ + public static function setMailSettings() { \OC_Util::checkAdminUser(); \OCP\JSON::callCheck(); @@ -70,14 +73,21 @@ class Controller { \OC_JSON::success(array("data" => array( "message" => $l->t("Saved") ))); } + /** + * Get the field name to use it in error messages + * + * @param $setting string + * @param $l \OC_L10N + * @return string + */ public static function getFieldname($setting, $l) { switch ($setting) { case 'mail_smtpmode': - return $l->t( 'SMTP mode' ); + return $l->t( 'Send mode' ); case 'mail_smtpsecure': - return $l->t( 'Secure SMTP' ); + return $l->t( 'Encryption' ); case 'mail_smtpauthtype': - return $l->t( 'Authentification method for SMTP' ); + return $l->t( 'Authentification method' ); } } } |