private function addPragma($text, $index)
    {
        $end    = strpos($text, $this->ctag, $index);
        $pragma = trim(substr($text, $index + 2, $end - $index - 2));

        // Pragmas are hoisted to the front of the template.
        array_unshift($this->tokens, array(
            self::TYPE => self::T_PRAGMA,
            self::NAME => $pragma,
            self::LINE => 0,
        ));

        return $end + $this->ctagLen - 1;
    }
private function addPragma($text, $index)
    {
        $end    = strpos($text, $this->ctag, $index);
        $pragma = trim(substr($text, $index + 2, $end - $index - 2));

        // Pragmas are hoisted to the front of the template.
        array_unshift($this->tokens, array(
            self::TYPE => self::T_PRAGMA,
            self::NAME => $pragma,
            self::LINE => 0,
        ));

        return $end + $this->ctagLen - 1;
    }
private function addPragma ( $ text , $ index ) { $ end = strpos ( $ text , $ this -> ctag , $ index ) ; $ pragma = trim ( substr ( $ text , $ index + 2 , $ end - $ index - 2 ) ) ; // Pragmas are hoisted to the front of the template. array_unshift ( $ this -> tokens , array ( self :: TYPE => self :: T_PRAGMA , self :: NAME => $ pragma , self :: LINE => 0 , ) ) ; return $ end + $ this -> ctagLen - 1 ; }
Add pragma token.

Pragmas are hoisted to the front of the template, so all pragma tokens
will appear at the front of the token list.

@param string $text
@param int    $index

@return int New index value
Add pragma token .