From: Siebrand Mazeland Date: Sun, 23 Mar 2014 00:05:21 +0000 (+0100) Subject: Declare visibility on class properties of SpecialUndelete X-Git-Tag: 1.31.0-rc.0~16484^2 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=5626af4bafdadfd0f5d931a3942e1cd96661d00e;p=lhc%2Fweb%2Fwiklou.git Declare visibility on class properties of SpecialUndelete All class properties are used solely in the class itself. SpecialUndelete is not being subclassed, so made all properties private. Change-Id: I32792fb5d21178d850764c0efe3024d957fca2a8 --- diff --git a/includes/specials/SpecialUndelete.php b/includes/specials/SpecialUndelete.php index e8a45a7ae1..55ab32dc89 100644 --- a/includes/specials/SpecialUndelete.php +++ b/includes/specials/SpecialUndelete.php @@ -674,11 +674,20 @@ class PageArchive { * @ingroup SpecialPage */ class SpecialUndelete extends SpecialPage { - var $mAction, $mTarget, $mTimestamp, $mRestore, $mInvert, $mFilename; - var $mTargetTimestamp, $mAllowed, $mCanView, $mComment, $mToken; + private $mAction; + private $mTarget; + private $mTimestamp; + private $mRestore; + private $mInvert; + private $mFilename; + private $mTargetTimestamp; + private $mAllowed; + private $mCanView; + private $mComment; + private $mToken; /** @var Title */ - var $mTargetObj; + private $mTargetObj; function __construct() { parent::__construct( 'Undelete', 'deletedhistory' );