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:
Siebrand Mazeland 2016-03-08 13:02:18 +01:00 committed by Nikerabbit
parent 346b34aa13
commit 7da9452d72
2 changed files with 6 additions and 6 deletions

View file

@ -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 ) {

View file

@ -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