From: Lukas Reschke Date: Thu, 9 Apr 2015 08:45:50 +0000 (+0200) Subject: Enforce string as passed type X-Git-Tag: v8.1.0alpha1~58^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d869f8212b3bf9cb50024bb137a3f42f2c1eac8b;p=nextcloud-server.git Enforce string as passed type --- diff --git a/apps/encryption/controller/recoverycontroller.php b/apps/encryption/controller/recoverycontroller.php index 3d0e39d7b93..9e5692f76fa 100644 --- a/apps/encryption/controller/recoverycontroller.php +++ b/apps/encryption/controller/recoverycontroller.php @@ -2,6 +2,7 @@ /** * @author Björn Schießle * @author Clark Tomlinson + * @author Lukas Reschke * * @copyright Copyright (c) 2015, ownCloud, Inc. * @license AGPL-3.0 @@ -28,7 +29,6 @@ use OCP\AppFramework\Controller; use OCP\IConfig; use OCP\IL10N; use OCP\IRequest; -use OCP\JSON; use OCP\AppFramework\Http\DataResponse; class RecoveryController extends Controller { @@ -59,6 +59,12 @@ class RecoveryController extends Controller { $this->recovery = $recovery; } + /** + * @param string $recoveryPassword + * @param string $confirmPassword + * @param string $adminEnableRecovery + * @return DataResponse + */ public function adminRecovery($recoveryPassword, $confirmPassword, $adminEnableRecovery) { // Check if both passwords are the same if (empty($recoveryPassword)) { @@ -89,6 +95,12 @@ class RecoveryController extends Controller { } } + /** + * @param string $newPassword + * @param string $oldPassword + * @param string $confirmPassword + * @return DataResponse + */ public function changeRecoveryPassword($newPassword, $oldPassword, $confirmPassword) { //check if both passwords are the same if (empty($oldPassword)) {