From b745a31a2d1623c3adbfcba75ffe0cba2c7bada0 Mon Sep 17 00:00:00 2001 From: uwetews Date: Fri, 11 Nov 2016 21:17:32 +0100 Subject: fixed spelling chilek commented on c4746e9 --- lexer/smarty_internal_templatelexer.plex | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lexer/smarty_internal_templatelexer.plex') diff --git a/lexer/smarty_internal_templatelexer.plex b/lexer/smarty_internal_templatelexer.plex index bf0d97c7..98ff6f40 100644 --- a/lexer/smarty_internal_templatelexer.plex +++ b/lexer/smarty_internal_templatelexer.plex @@ -30,7 +30,7 @@ class Smarty_Internal_Templatelexer * * @var int */ - public $dataLenght = null; + public $dataLength = null; /** * byte counter @@ -232,7 +232,7 @@ class Smarty_Internal_Templatelexer function __construct($data, Smarty_Internal_TemplateCompilerBase $compiler) { $this->data = $data; - $this->dataLenght = strlen($data); + $this->dataLength = strlen($data); $this->counter = 0; if (preg_match('/^\xEF\xBB\xBF/i', $this->data, $match)) { $this->counter += strlen($match[0]); @@ -374,7 +374,7 @@ class Smarty_Internal_Templatelexer $this->compiler->getTagCompiler('private_php')->parsePhp($this); } text { - $to = $this->dataLenght; + $to = $this->dataLength; preg_match("/($this->ldel)|(<[?]((php\s+|=)|\s+))|(<[%])|(<[?]xml\s+)|()|([?][>])|([%][>])/i",$this->data,$match,PREG_OFFSET_CAPTURE,$this->counter); if (isset($match[0][1])) { $to = $match[0][1]; @@ -614,7 +614,7 @@ class Smarty_Internal_Templatelexer } } text { - $to = $this->dataLenght; + $to = $this->dataLength; preg_match("/{$this->ldel}[\/]?literal{$this->rdel}/i",$this->data,$match,PREG_OFFSET_CAPTURE,$this->counter); if (isset($match[0][1])) { $to = $match[0][1]; @@ -678,7 +678,7 @@ class Smarty_Internal_Templatelexer $this->token = Smarty_Internal_Templateparser::TP_TEXT; } text { - $to = $this->dataLenght; + $to = $this->dataLength; $this->value = substr($this->data,$this->counter,$to-$this->counter); $this->token = Smarty_Internal_Templateparser::TP_TEXT; } -- cgit v1.3