From: Mikael Nordfeldth Date: Fri, 12 Jun 2015 15:15:39 +0000 (+0200) Subject: No reason to have makeRegex protected X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a03249dd99bf2b30ee19dfec4d970c229962f53f;p=quix0rs-gnu-social.git No reason to have makeRegex protected --- diff --git a/lib/urlmapper.php b/lib/urlmapper.php index d17493e21d..3a6f70fcda 100644 --- a/lib/urlmapper.php +++ b/lib/urlmapper.php @@ -92,7 +92,7 @@ class URLMapper } } - $regex = $this->makeRegex($path, $paramPatterns); + $regex = self::makeRegex($path, $paramPatterns); $this->variables[] = array($args, $regex, $paramNames); @@ -207,7 +207,7 @@ class URLMapper return $match['name']; } - protected function makeRegex($path, $paramPatterns) + static function makeRegex($path, $paramPatterns) { $pr = new PatternReplacer($paramPatterns);