Addshore has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/154606

Change subject: Use public instead of var in classes
......................................................................

Use public instead of var in classes

Change-Id: Ic92dc1938e76dcac9c559da52b110f2b6586e275
---
M FanBoxClass.php
M FanBoxPage.php
M FanBoxesClass.php
M TagCloudClass.php
4 files changed, 10 insertions(+), 10 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/FanBoxes 
refs/changes/06/154606/1

diff --git a/FanBoxClass.php b/FanBoxClass.php
index 5fcb945..d9637c7 100644
--- a/FanBoxClass.php
+++ b/FanBoxClass.php
@@ -7,7 +7,7 @@
  */
 class FanBox {
 
-       var $name,
+       public $name,
                $title,
                $exists,
                $create_date,
diff --git a/FanBoxPage.php b/FanBoxPage.php
index 4023d98..f6d8cfa 100644
--- a/FanBoxPage.php
+++ b/FanBoxPage.php
@@ -7,13 +7,13 @@
  */
 class FanBoxPage extends Article {
 
-       var $title = null;
-       var $authors = array();
+       public $title = null;
+       public $authors = array();
 
        /**
         * @var FanBox: FanBox for the current Title
         */
-       var $fan;
+       public $fan;
 
        function __construct( Title $title ) {
                parent::__construct( $title );
diff --git a/FanBoxesClass.php b/FanBoxesClass.php
index 288ec10..d5051f0 100644
--- a/FanBoxesClass.php
+++ b/FanBoxesClass.php
@@ -8,8 +8,8 @@
  */
 class UserFanBoxes {
 
-       var $user_id;   # Text form (spaces not underscores) of the main part
-       var $user_name; # Text form (spaces not underscores) of the main part
+       public $user_id;        # Text form (spaces not underscores) of the 
main part
+       public $user_name;      # Text form (spaces not underscores) of the 
main part
 
        /**
         * Constructor
diff --git a/TagCloudClass.php b/TagCloudClass.php
index 8d936df..e9a3cb2 100644
--- a/TagCloudClass.php
+++ b/TagCloudClass.php
@@ -4,10 +4,10 @@
  * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 
2.0 or later
  */
 class TagCloud {
-       var $tags_min_pts = 8;
-       var $tags_max_pts = 32;
-       var $tags_highest_count = 0;
-       var $tags_size_type = 'pt';
+       public $tags_min_pts = 8;
+       public $tags_max_pts = 32;
+       public $tags_highest_count = 0;
+       public $tags_size_type = 'pt';
 
        public function __construct( $limit = 10 ) {
                $this->limit = $limit;

-- 
To view, visit https://gerrit.wikimedia.org/r/154606
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic92dc1938e76dcac9c559da52b110f2b6586e275
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/FanBoxes
Gerrit-Branch: master
Gerrit-Owner: Addshore <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to