/**
* Get an array of parser substitution modifier IDs
+ * @return array
*/
static function getSubstIDs() {
return self::$mSubstIDs;
/**
* Allow external reads of TTL array
*
+ * @param $id int
* @return array
*/
- static function getCacheTTL($id) {
+ static function getCacheTTL( $id ) {
if ( array_key_exists( $id, self::$mCacheTTLs ) ) {
return self::$mCacheTTLs[$id];
} else {
/**
* Returns true if the text contains the word
*
- * @paran $text string
+ * @param $text string
*
* @return bool
*/
/**
* Get a regex anchored to the start of the string that does not match parameters
*
- * @return string
+ * @return array
*/
function getRegexStart() {
$base = $this->getBaseRegex();
/**
* Get an anchored regex for matching variables with parameters
*
- * @return string
+ * @return array
*/
function getVariableStartToEndRegex() {
$base = $this->getBaseRegex();
*/
function parseMatch( $m ) {
reset( $m );
- foreach ( $m as $key => $value ) {
+ while ( list( $key, $value ) = each( $m ) ) {
if ( $key === 0 || $value === '' ) {
continue;
}