Function return type hints
authorSam Reed <reedy@users.mediawiki.org>
Thu, 28 Oct 2010 00:04:48 +0000 (00:04 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Thu, 28 Oct 2010 00:04:48 +0000 (00:04 +0000)
Explicit class variable definition

includes/api/ApiRollback.php
includes/api/ApiUserrights.php
includes/specials/SpecialBlockip.php

index f0360d9..7783e7a 100644 (file)
@@ -154,6 +154,9 @@ class ApiRollback extends ApiBase {
                return $this->mUser;
        }
 
+       /**
+        * @return Title
+        */
        private function getTitle() {
                if ( $this->mTitleObj !== null ) {
                        return $this->mTitleObj;
index deb11f7..8b3adf3 100644 (file)
@@ -58,6 +58,9 @@ class ApiUserrights extends ApiBase {
                $this->getResult()->addValue( null, $this->getModuleName(), $r );
        }
 
+       /**
+        * @return User
+        */
        private function getUser() {
                if ( $this->mUser !== null ) {
                        return $this->mUser;
index 80616dd..f4abc7c 100644 (file)
@@ -28,7 +28,8 @@
  * @ingroup SpecialPage
  */
 class IPBlockForm extends SpecialPage {
-       var $BlockAddress, $BlockExpiry, $BlockReason;
+       var $BlockAddress, $BlockExpiry, $BlockReason, $BlockReasonList, $BlockOther, $BlockAnonOnly, $BlockCreateAccount,
+               $BlockEnableAutoblock, $BlockEmail, $BlockHideName, $BlockAllowUsertalk, $BlockReblock;
        // The maximum number of edits a user can have and still be hidden
        const HIDEUSER_CONTRIBLIMIT = 1000;