src/Translation/LanguageParser.php
/**
	 * Parses and returns a value of mixed type (booleans, null, numbers, or strings).
	 *
	 * @param string $string
	 * @return string
	 */
Parses and returns a value of mixed type (booleans, null, numbers, or strings).
Parses and returns a value of mixed type ( booleans null numbers or strings ) .
protected function parseMixedValue($value) {
		if ($value == 'true' || $value == 'false') {
			return $value == 'true';
		}
		if ($value == 'null' || $value == 'nil') {
			return null;
		}
		if (is_numeric($value)) {
			return $value;
		}
		return $this->parseQuotedString($value);
	}
protected function parseMixedValue ( $ value ) { if ( $ value == 'true' || $ value == 'false' ) { return $ value == 'true' ; } if ( $ value == 'null' || $ value == 'nil' ) { return null ; } if ( is_numeric ( $ value ) ) { return $ value ; } return $ this -> parseQuotedString ( $ value ) ; }
Parses and returns a value of mixed type (booleans, null, numbers, or strings).
Parses and returns a value of mixed type ( booleans null numbers or strings ) .