Permalink
Browse files

Code style cleanup.

  • Loading branch information...
1 parent 6b8b89a commit 4dd4db606503c27e7eafad362bd0acdf9a921f21 @bobthecow committed May 3, 2012
Showing with 11 additions and 6 deletions.
  1. +4 −0 src/Mustache/Compiler.php
  2. +3 −3 src/Mustache/Parser.php
  3. +2 −2 src/Mustache/Template.php
  4. +2 −1 src/Mustache/Tokenizer.php
@@ -29,6 +29,8 @@ class Mustache_Compiler
* @param string $source Mustache Template source code
* @param string $tree Parse tree of Mustache tokens
* @param string $name Mustache Template class name
+ * @param bool $customEscape (default: false)
+ * @param string $charset (default: 'UTF-8')
*
* @return string Generated PHP source code
*/
@@ -328,6 +330,8 @@ private function prepare($text, $bonus = 0, $prependNewline = true)
/**
* Get the current escaper.
*
+ * @param string $value (default: '$value')
+ *
* @return string Either a custom callback, or an inline call to `htmlspecialchars`
*/
private function getEscape($value = '$value')
View
@@ -32,12 +32,12 @@ public function parse(array $tokens = array())
/**
* Helper method for recursively building a parse tree.
*
- * @throws LogicException when nesting errors or mismatched section tags are encountered.
- *
* @param ArrayIterator $tokens Stream of Mustache tokens
- * @param array $parent Parent token (default: null)
+ * @param array $parent Parent token (default: null)
*
* @return array Mustache Token parse tree
+ *
+ * @throws LogicException when nesting errors or mismatched section tags are encountered.
*/
private function buildTree(ArrayIterator $tokens, array $parent = null)
{
@@ -67,9 +67,9 @@ public function render($context = array())
*
* This is where the magic happens :)
*
- * @abstract
- *
* @param Mustache_Context $context
+ * @param string $indent (default: '')
+ * @param bool $escape (default: false)
*
* @return string Rendered template
*/
@@ -14,7 +14,8 @@
*
* This class is responsible for turning raw template source into a set of Mustache tokens.
*/
-class Mustache_Tokenizer {
+class Mustache_Tokenizer
+{
// Finite state machine states
const IN_TEXT = 0;

0 comments on commit 4dd4db6

Please sign in to comment.