From e09c4d952d97f0f4bf4bf4b5226620f3e98cfc34 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Fri, 27 Sep 2013 11:32:41 +0200 Subject: [PATCH] less: Add '@since 1.22' comments Change-Id: I673705423cf7618e207c0ee47b01761d6c89ce5f --- includes/resourceloader/ResourceLoaderFileModule.php | 4 ++++ includes/resourceloader/ResourceLoaderModule.php | 2 ++ 2 files changed, 6 insertions(+) diff --git a/includes/resourceloader/ResourceLoaderFileModule.php b/includes/resourceloader/ResourceLoaderFileModule.php index 3b81b11948..23fbf73e24 100644 --- a/includes/resourceloader/ResourceLoaderFileModule.php +++ b/includes/resourceloader/ResourceLoaderFileModule.php @@ -486,6 +486,7 @@ class ResourceLoaderFileModule extends ResourceLoaderModule { /** * Infer the stylesheet language from a stylesheet file path. * + * @since 1.22 * @param string $path * @return string: the stylesheet language name */ @@ -703,11 +704,13 @@ class ResourceLoaderFileModule extends ResourceLoaderModule { /** * Generate a cache key for a LESS file. + * * The cache key varies on the file name, the names and values of global * LESS variables, and the value of $wgShowExceptionDetails. Varying on * $wgShowExceptionDetails ensures the CSS comment indicating compilation * failure shows the right level of detail. * + * @since 1.22 * @param string $fileName File name of root LESS file. * @return string: Cache key */ @@ -728,6 +731,7 @@ class ResourceLoaderFileModule extends ResourceLoaderModule { * that were processed. lessphp compares the cached & current mtimes and * recompiles as necessary. * + * @since 1.22 * @param string $fileName File path of LESS source * @return string: CSS source */ diff --git a/includes/resourceloader/ResourceLoaderModule.php b/includes/resourceloader/ResourceLoaderModule.php index 1119cdbb08..da47724d0e 100644 --- a/includes/resourceloader/ResourceLoaderModule.php +++ b/includes/resourceloader/ResourceLoaderModule.php @@ -458,6 +458,7 @@ abstract class ResourceLoaderModule { } /** + * @since 1.22 * @return lessc */ protected static function lessCompiler() { @@ -480,6 +481,7 @@ abstract class ResourceLoaderModule { /** * Get global LESS variables. * + * @since 1.22 * @return array: Map of variable names to string CSS values. */ protected static function getLESSVars() { -- 2.20.1