1
0
mirror of https://github.com/nextcloud/ocsms.git synced 2026-08-11 16:32:55 +00:00

Code cleanup + some PHPDoc

This commit is contained in:
Loic Blot
2016-05-19 08:03:27 +02:00
parent 339f76cf01
commit f05d5562b8
3 changed files with 36 additions and 6 deletions
+6
View File
@@ -52,6 +52,8 @@ class SettingsController extends Controller {
/**
* @NoAdminRequired
* @param $country
* @return JSONResponse
*/
function setCountry($country) {
if (!array_key_exists($country, CountryCodes::$codes)) {
@@ -63,6 +65,8 @@ class SettingsController extends Controller {
/**
* @NoAdminRequired
* @param $limit
* @return JSONResponse
*/
function setMessageLimit($limit) {
$this->configMapper->set("message_limit", $limit);
@@ -71,6 +75,8 @@ class SettingsController extends Controller {
/**
* @NoAdminRequired
* @param $notification
* @return JSONResponse
*/
function setNotificationState($notification) {
if (!is_numeric($notification) || $notification < 0 || $notification > 2) {