Permalink
Browse files

Fixes for PSR-1/2

  • Loading branch information...
1 parent 7750a41 commit 83b6f935f7623bc7b8a2d1998606d67f2edcafc4 @bobthecow committed Jun 13, 2012
Showing with 3 additions and 4 deletions.
  1. +1 −1 src/Mustache/Autoloader.php
  2. +0 −1 src/Mustache/Compiler.php
  3. +2 −2 src/Mustache/Template.php
@@ -38,7 +38,7 @@ public function __construct($baseDir = null)
*
* @return Mustache_Autoloader Registered Autoloader instance
*/
- static public function register($baseDir = null)
+ public static function register($baseDir = null)
{
$loader = new self($baseDir);
spl_autoload_register(array($loader, 'autoload'));
@@ -102,7 +102,6 @@ private function walk(array $tree, $level = 0)
$code .= $this->variable($node[Mustache_Tokenizer::NAME], true, $level);
break;
-
case Mustache_Tokenizer::T_TEXT:
$code .= $this->text($node[Mustache_Tokenizer::VALUE], $level);
break;
@@ -68,8 +68,8 @@ public function render($context = array())
* This is where the magic happens :)
*
* @param Mustache_Context $context
- * @param string $indent (default: '')
- * @param bool $escape (default: false)
+ * @param string $indent (default: '')
+ * @param bool $escape (default: false)
*
* @return string Rendered template
*/

0 comments on commit 83b6f93

Please sign in to comment.