- Mostly bugfixes made while working on ParcInfo

This commit is contained in:
Dave Mc Nicoll committed 2021-10-19 12:39:14 +00:00
1 parent 67040db155
commit 45c8173029
4 files changed
+28 -8

No files matched your search

+3 -3
View File
@@ -48,7 +48,7 @@ class Compiler
list($token, $arguments) = array_pad(array_filter(explode(' ', $matches[2], 2), 'strlen'), 2, null);
$token = trim($token);
$token = strtolower(trim($token));
# @TODO Refractor this parts to allows registration to the tag's name
if ( $this->tagList[$token] ?? false ) {
@@ -87,7 +87,7 @@ class Compiler
public function registerControlStructure(ControlStructure\ControlStructure $controlStructureObject) : self
{
foreach($controlStructureObject->tokens ?? (array) ( $controlStructureObject->token ?? [] ) as $token) {
$this->tagList[$token] = $controlStructureObject;
$this->tagList[strtolower($token)] = $controlStructureObject;
}
return $this;
@@ -98,7 +98,7 @@ class Compiler
$tokens = $extension->tokens ?? (array) ( $extension->token ?? [] );
foreach($tokens as $token) {
$this->extensionList[$token] = $extension;
$this->extensionList[strtolower($token)] = $extension;
}
if (! $tokens ) {