From adee3374bfcae58120dd77ba9d7078a0d77b496a Mon Sep 17 00:00:00 2001 From: Ori Livneh Date: Tue, 17 Sep 2013 20:58:39 -0700 Subject: [PATCH] Make CSSMin::getMimeType public rather than protected There's no reason why it should be protected. People sometimes use 'protected' to mean 'ancillary to the main purpose of the class', but 'protected' comes with the added cost of making the class API less flexible. I intend to call this method in a future revision of Id052a04dd2, but I think it should be public regardless. Change-Id: I56365df3152df1180ce73de98202e3a91def1485 --- includes/libs/CSSMin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/libs/CSSMin.php b/includes/libs/CSSMin.php index 8b0e2873f2..17e1258661 100644 --- a/includes/libs/CSSMin.php +++ b/includes/libs/CSSMin.php @@ -85,7 +85,7 @@ class CSSMin { * @param $file string * @return bool|string */ - protected static function getMimeType( $file ) { + public static function getMimeType( $file ) { $realpath = realpath( $file ); // Try a couple of different ways to get the mime-type of a file, in order of // preference -- 2.20.1