From f1c78e330fc27aa25d22d249424c0e7a04d69d88 Mon Sep 17 00:00:00 2001 From: addshore Date: Sun, 17 Aug 2014 22:04:15 +0100 Subject: [PATCH] Use public instead of var in classes Change-Id: I351e0b776497b9cfa9914400048e5ea9f00b5aac --- Cite_body.php | 26 +++++++++++++------------- SpecialCite_body.php | 14 +++++++------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/Cite_body.php b/Cite_body.php index f88919fd7..496e32d82 100644 --- a/Cite_body.php +++ b/Cite_body.php @@ -53,21 +53,21 @@ class Cite { * * @var array **/ - var $mRefs = array(); + public $mRefs = array(); /** * Count for user displayed output (ref[1], ref[2], ...) * * @var int */ - var $mOutCnt = 0; - var $mGroupCnt = array(); + public $mOutCnt = 0; + public $mGroupCnt = array(); /** * Counter to track the total number of (useful) calls to either the * ref or references tag hook */ - var $mCallCnt = 0; + public $mCallCnt = 0; /** * The backlinks, in order, to pass as $3 to @@ -76,19 +76,19 @@ class Cite { * * @var array */ - var $mBacklinkLabels; + public $mBacklinkLabels; /** * The links to use per group, in order. * * @var array */ - var $mLinkLabels = array(); + public $mLinkLabels = array(); /** * @var Parser */ - var $mParser; + public $mParser; /** * True when the ParserAfterParse hook has been called. @@ -96,7 +96,7 @@ class Cite { * * @var boolean */ - var $mHaveAfterParse = false; + public $mHaveAfterParse = false; /** * True when a tag is being processed. @@ -104,7 +104,7 @@ class Cite { * * @var boolean */ - var $mInCite = false; + public $mInCite = false; /** * True when a tag is being processed. @@ -112,21 +112,21 @@ class Cite { * * @var boolean */ - var $mInReferences = false; + public $mInReferences = false; /** * Error stack used when defining refs in * * @var array */ - var $mReferencesErrors = array(); + public $mReferencesErrors = array(); /** * Group used when in block * * @var string */ - var $mReferencesGroup = ''; + public $mReferencesGroup = ''; /** * call stack @@ -135,7 +135,7 @@ class Cite { * * @var array */ - var $mRefCallStack = array(); + public $mRefCallStack = array(); /** * Did we install us into $wgHooks yet? diff --git a/SpecialCite_body.php b/SpecialCite_body.php index f10cdf87c..c2a6befc6 100644 --- a/SpecialCite_body.php +++ b/SpecialCite_body.php @@ -34,7 +34,7 @@ class CiteForm { /** * @var Title */ - var $mTitle; + public $mTitle; function __construct( &$title ) { $this->mTitle =& $title; @@ -80,26 +80,26 @@ class CiteOutput { /** * @var Title */ - var $mTitle; + public $mTitle; /** * @var Article */ - var $mArticle; + public $mArticle; - var $mId; + public $mId; /** * @var Parser */ - var $mParser; + public $mParser; /** * @var ParserOptions */ - var $mParserOptions; + public $mParserOptions; - var $mSpTitle; + public $mSpTitle; function __construct( $title, $id ) { global $wgHooks, $wgParser;