Code style cleanup.
This commit is contained in:
@@ -29,6 +29,8 @@ class Mustache_Compiler
|
|||||||
* @param string $source Mustache Template source code
|
* @param string $source Mustache Template source code
|
||||||
* @param string $tree Parse tree of Mustache tokens
|
* @param string $tree Parse tree of Mustache tokens
|
||||||
* @param string $name Mustache Template class name
|
* @param string $name Mustache Template class name
|
||||||
|
* @param bool $customEscape (default: false)
|
||||||
|
* @param string $charset (default: 'UTF-8')
|
||||||
*
|
*
|
||||||
* @return string Generated PHP source code
|
* @return string Generated PHP source code
|
||||||
*/
|
*/
|
||||||
@@ -328,6 +330,8 @@ class Mustache_Compiler
|
|||||||
/**
|
/**
|
||||||
* Get the current escaper.
|
* Get the current escaper.
|
||||||
*
|
*
|
||||||
|
* @param string $value (default: '$value')
|
||||||
|
*
|
||||||
* @return string Either a custom callback, or an inline call to `htmlspecialchars`
|
* @return string Either a custom callback, or an inline call to `htmlspecialchars`
|
||||||
*/
|
*/
|
||||||
private function getEscape($value = '$value')
|
private function getEscape($value = '$value')
|
||||||
|
|||||||
@@ -32,12 +32,12 @@ class Mustache_Parser
|
|||||||
/**
|
/**
|
||||||
* Helper method for recursively building a parse tree.
|
* 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 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
|
* @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)
|
private function buildTree(ArrayIterator $tokens, array $parent = null)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -67,9 +67,9 @@ abstract class Mustache_Template
|
|||||||
*
|
*
|
||||||
* This is where the magic happens :)
|
* This is where the magic happens :)
|
||||||
*
|
*
|
||||||
* @abstract
|
|
||||||
*
|
|
||||||
* @param Mustache_Context $context
|
* @param Mustache_Context $context
|
||||||
|
* @param string $indent (default: '')
|
||||||
|
* @param bool $escape (default: false)
|
||||||
*
|
*
|
||||||
* @return string Rendered template
|
* @return string Rendered template
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -14,7 +14,8 @@
|
|||||||
*
|
*
|
||||||
* This class is responsible for turning raw template source into a set of Mustache tokens.
|
* 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
|
// Finite state machine states
|
||||||
const IN_TEXT = 0;
|
const IN_TEXT = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user