Merge "Remove renamed .inc files from phan config"
[lhc/web/wiklou.git] / includes / specials / SpecialPasswordReset.php
index bf8dea6..7342bb0 100644 (file)
@@ -36,11 +36,6 @@ class SpecialPasswordReset extends FormSpecialPage {
        /** @var PasswordReset */
        private $passwordReset = null;
 
-       /**
-        * @var string[] Temporary storage for the passwords which have been sent out, keyed by username.
-        */
-       private $passwords = [];
-
        /**
         * @var Status
         */
@@ -138,8 +133,8 @@ class SpecialPasswordReset extends FormSpecialPage {
         * @return Status
         */
        public function onSubmit( array $data ) {
-               $username = isset( $data['Username'] ) ? $data['Username'] : null;
-               $email = isset( $data['Email'] ) ? $data['Email'] : null;
+               $username = $data['Username'] ?? null;
+               $email = $data['Email'] ?? null;
 
                $this->method = $username ? 'username' : 'email';
                $this->result = Status::wrap(