From 3a87a45ef2bfb6252e7e17a3ff8ea63d5a0e90f7 Mon Sep 17 00:00:00 2001 From: hsmr Date: Mon, 3 Mar 2014 13:34:48 +0100 Subject: [PATCH] correct indention into file default --- lib/Compiler.class.php | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/lib/Compiler.class.php b/lib/Compiler.class.php index 004a5dd..e787336 100644 --- a/lib/Compiler.class.php +++ b/lib/Compiler.class.php @@ -1,5 +1,4 @@ $args) - { - $this->registerFunction($name, $args['callback']); - } - } + /** + * Registers a set of functions + * + * @param array $functions + */ + public function registerFunctions(array $functions = array()) + { + foreach ($functions as $name => $args) + { + $this->registerFunction($name, $args['callback']); + } + } /** * Returns available variables @@ -96,7 +95,7 @@ public function cacheStylesheet(WPLessStylesheet $stylesheet, $force = false) // saving compiled stuff if (isset($compiled_cache['compiled']) && $compiled_cache['compiled']) { - $stylesheet->setSourceTimestamp($compiled_cache['updated']); + $stylesheet->setSourceTimestamp($compiled_cache['updated']); $this->saveStylesheet($stylesheet, $compiled_cache['compiled']); $compiled_cache['compiled'] = NULL;