mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ParserFunctions
synced 2024-11-15 11:59:54 +00:00
Explicitly declare access modifiers
All these methods and (static) class properties are used as public access at the moment. So set them explicitly as such. Change-Id: Ib3bab43a54ce295d4dbfcdaa95450d573699bfb2
This commit is contained in:
parent
346b34aa13
commit
7da9452d72
4
Expr.php
4
Expr.php
|
@ -178,7 +178,7 @@ class ExprParser {
|
|||
* @throws ExprError
|
||||
* @return string
|
||||
*/
|
||||
function doExpression( $expr ) {
|
||||
public function doExpression( $expr ) {
|
||||
$operands = array();
|
||||
$operators = array();
|
||||
|
||||
|
@ -398,7 +398,7 @@ class ExprParser {
|
|||
* @param $stack array
|
||||
* @throws ExprError
|
||||
*/
|
||||
function doOperation( $op, &$stack ) {
|
||||
public function doOperation( $op, &$stack ) {
|
||||
switch ( $op ) {
|
||||
case EXPR_NEGATIVE:
|
||||
if ( count( $stack ) < 1 ) {
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<?php
|
||||
|
||||
class ExtParserFunctions {
|
||||
static $mExprParser;
|
||||
static $mTimeCache = array();
|
||||
static $mTimeChars = 0;
|
||||
static $mMaxTimeChars = 6000; # ~10 seconds
|
||||
public static $mExprParser;
|
||||
public static $mTimeCache = array();
|
||||
public static $mTimeChars = 0;
|
||||
public static $mMaxTimeChars = 6000; # ~10 seconds
|
||||
|
||||
/**
|
||||
* @param $parser Parser
|
||||
|
|
Loading…
Reference in a new issue