Explicitly define member variables
authorReedy <reedy@wikimedia.org>
Sat, 10 Nov 2012 15:05:02 +0000 (15:05 +0000)
committerReedy <reedy@wikimedia.org>
Sat, 10 Nov 2012 15:05:02 +0000 (15:05 +0000)
Change-Id: Ib2b8dfb84570557f1aeab474f4939e3a657c5732

includes/specials/SpecialChangePassword.php

index 41b3b25..959cd82 100644 (file)
@@ -27,6 +27,9 @@
  * @ingroup SpecialPage
  */
 class SpecialChangePassword extends UnlistedSpecialPage {
+
+       protected $mUserName, $mOldpass, $mNewpass, $mRetype, $mDomain, $mRetypePass;
+
        public function __construct() {
                parent::__construct( 'ChangePassword' );
        }
@@ -105,6 +108,9 @@ class SpecialChangePassword extends UnlistedSpecialPage {
                $this->getOutput()->redirect( $titleObj->getFullURL() );
        }
 
+       /**
+        * @param $msg string
+        */
        function error( $msg ) {
                $this->getOutput()->addHTML( Xml::element('p', array( 'class' => 'error' ), $msg ) );
        }
@@ -170,6 +176,10 @@ class SpecialChangePassword extends UnlistedSpecialPage {
                );
        }
 
+       /**
+        * @param $fields array
+        * @return string
+        */
        function pretty( $fields ) {
                $out = '';
                foreach ( $fields as $list ) {