diff options
| author | uwetews <uwe.tews@googlemail.com> | 2016-11-11 21:17:32 +0100 |
|---|---|---|
| committer | uwetews <uwe.tews@googlemail.com> | 2016-11-11 21:17:32 +0100 |
| commit | b745a31a2d1623c3adbfcba75ffe0cba2c7bada0 (patch) | |
| tree | df4d118a72810c304535704d744727b6edfb7f14 /lexer/smarty_internal_templatelexer.plex | |
| parent | d120c1fad2de4ed468e3485cfcc129a15a2e4780 (diff) | |
| download | smarty-b745a31a2d1623c3adbfcba75ffe0cba2c7bada0.tar.gz smarty-b745a31a2d1623c3adbfcba75ffe0cba2c7bada0.tar.bz2 smarty-b745a31a2d1623c3adbfcba75ffe0cba2c7bada0.zip | |
fixed spelling chilek commented on c4746e9
Diffstat (limited to 'lexer/smarty_internal_templatelexer.plex')
| -rw-r--r-- | lexer/smarty_internal_templatelexer.plex | 10 |
1 files changed, 5 insertions, 5 deletions
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+)|(<script\s+language\s*=\s*[\"']?\s*php\s*[\"']?\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; } |
