Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 64... Línea 64...
64
     * Helper method for recursively building a parse tree.
64
     * Helper method for recursively building a parse tree.
65
     *
65
     *
66
     * @throws Mustache_Exception_SyntaxException when nesting errors or mismatched section tags are encountered
66
     * @throws Mustache_Exception_SyntaxException when nesting errors or mismatched section tags are encountered
67
     *
67
     *
68
     * @param array &$tokens Set of Mustache tokens
68
     * @param array &$tokens Set of Mustache tokens
69
     * @param array $parent  Parent token (default: null)
69
     * @param ?array $parent  Parent token (default: null)
70
     *
70
     *
71
     * @return array Mustache Token parse tree
71
     * @return array Mustache Token parse tree
72
     */
72
     */
73
    private function buildTree(array &$tokens, array $parent = null)
73
    private function buildTree(array &$tokens, ?array $parent = null)
74
    {
74
    {
75
        $nodes = array();
75
        $nodes = array();
Línea 76... Línea 76...
76
 
76
 
77
        while (!empty($tokens)) {
77
        while (!empty($tokens)) {