Addshore has uploaded a new change for review.
https://gerrit.wikimedia.org/r/154637
Change subject: Use public instead of var in classes
......................................................................
Use public instead of var in classes
Change-Id: I8b377f43ff149e28a1840d886caff80f06bc63ba
---
M BaseXQuery.php
M BaseXSession.php
M SpecialMathSearch.php
M maintenance/CalculateDistances.php
M maintenance/CleanMathTable.php
M maintenance/ExtractFeatures.php
M maintenance/GenerateFeatureTable.php
M maintenance/UpdateMath.php
8 files changed, 20 insertions(+), 20 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MathSearch
refs/changes/37/154637/1
diff --git a/BaseXQuery.php b/BaseXQuery.php
index c34f045..0297b39 100644
--- a/BaseXQuery.php
+++ b/BaseXQuery.php
@@ -10,7 +10,7 @@
*/
class BaseXQuery {
- var $session, $id, $open, $cache;
+ public $session, $id, $open, $cache;
public function __construct($s, $q) {
$this->session = $s;
diff --git a/BaseXSession.php b/BaseXSession.php
index 8b6a322..3b91f2c 100644
--- a/BaseXSession.php
+++ b/BaseXSession.php
@@ -10,7 +10,7 @@
*/
class BaseXSession {
// class variables.
- var $socket, $info, $buffer, $bpos, $bsize;
+ public $socket, $info, $buffer, $bpos, $bsize;
function __construct($h=false, $p=false, $user=false, $pw=false) {
global $wgMathSearchBaseXPassword, $wgMathSearchBaseXServer,
$wgMathSearchBaseXPort, $wgMathSearchBaseXUser;
diff --git a/SpecialMathSearch.php b/SpecialMathSearch.php
index c3157cc..a28eaa6 100644
--- a/SpecialMathSearch.php
+++ b/SpecialMathSearch.php
@@ -12,16 +12,16 @@
class SpecialMathSearch extends SpecialPage
{
- var $qs;
- var $math_result;
- var $mathSearchExpr;
- var $numTextResults;
- var $mathResults;
- var $mathpattern;
- var $textpattern;
- var $mathmlquery;
- var $mathEngine;
- var $displayQuery;
+ public $qs;
+ public $math_result;
+ public $mathSearchExpr;
+ public $numTextResults;
+ public $mathResults;
+ public $mathpattern;
+ public $textpattern;
+ public $mathmlquery;
+ public $mathEngine;
+ public $displayQuery;
private $mathBackend;
private $resultID = 0;
private $xQueryEngines = array( 'db2', 'basex' );
diff --git a/maintenance/CalculateDistances.php
b/maintenance/CalculateDistances.php
index 0cb1ea2..20aa23d 100644
--- a/maintenance/CalculateDistances.php
+++ b/maintenance/CalculateDistances.php
@@ -24,7 +24,7 @@
class CalculateDistances extends Maintenance {
const RTI_CHUNK_SIZE = 100;
/**@var DatabaseBase $dbw */
- var $dbw = null;
+ public $dbw = null;
/**
* @var DatabaseBase
diff --git a/maintenance/CleanMathTable.php b/maintenance/CleanMathTable.php
index 9dc9d6d..adc84e1 100644
--- a/maintenance/CleanMathTable.php
+++ b/maintenance/CleanMathTable.php
@@ -23,7 +23,7 @@
class UpdateMath extends Maintenance {
const RTI_CHUNK_SIZE = 10;
- var $purge = false;
+ public $purge = false;
/**
* @var DatabaseBase
diff --git a/maintenance/ExtractFeatures.php b/maintenance/ExtractFeatures.php
index fef7613..79ec9b4 100644
--- a/maintenance/ExtractFeatures.php
+++ b/maintenance/ExtractFeatures.php
@@ -23,8 +23,8 @@
class ExtractFeatures extends Maintenance {
const RTI_CHUNK_SIZE = 100;
- var $purge = false;
- var $dbw = null;
+ public $purge = false;
+ public $dbw = null;
/**
* @var DatabaseBase
diff --git a/maintenance/GenerateFeatureTable.php
b/maintenance/GenerateFeatureTable.php
index 947dce9..59c75ad 100644
--- a/maintenance/GenerateFeatureTable.php
+++ b/maintenance/GenerateFeatureTable.php
@@ -23,8 +23,8 @@
class UpdateMath extends Maintenance {
const RTI_CHUNK_SIZE = 100000;
- var $purge = false;
- var $dbw = null;
+ public $purge = false;
+ public $dbw = null;
/**
* @var DatabaseBase
diff --git a/maintenance/UpdateMath.php b/maintenance/UpdateMath.php
index 46a8e2b..577ab6f 100644
--- a/maintenance/UpdateMath.php
+++ b/maintenance/UpdateMath.php
@@ -23,11 +23,11 @@
class UpdateMath extends Maintenance {
const RTI_CHUNK_SIZE = 100;
- var $purge = false;
+ public $purge = false;
/** @var boolean */
private $verbose;
/** @var DatabaseBase */
- var $dbw = null;
+ public $dbw = null;
/** @var MathRenderer */
private $current;
private $time = 0;//microtime( true );
--
To view, visit https://gerrit.wikimedia.org/r/154637
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I8b377f43ff149e28a1840d886caff80f06bc63ba
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MathSearch
Gerrit-Branch: master
Gerrit-Owner: Addshore <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits