Merge remote-tracking branch 'origin/master'

This commit is contained in:
Michal Čihař 2012-04-09 14:44:45 +02:00
commit b3023493bc

View File

@ -110,7 +110,7 @@ class Advisor
*
* @return string
*/
function escapePercent($str)
static function escapePercent($str)
{
return preg_replace('/%( |,|\.|$|\(|\)|<|>)/', '%%\1', $str);
}
@ -143,7 +143,7 @@ class Advisor
*
* @return array
*/
function splitJustification($rule)
static function splitJustification($rule)
{
$jst = preg_split('/\s*\|\s*/', $rule['justification'], 2);
if (count($jst) > 1) {
@ -253,7 +253,7 @@ class Advisor
}
// Reads the rule file into an array, throwing errors messages on syntax errors
function parseRulesFile()
static function parseRulesFile()
{
$file = file('libraries/advisory_rules.txt');
$errors = array();