Fixed conflicts added since latest commits

This commit is contained in:
mcndave committed 2020-03-31 11:03:02 -04:00
1 parent 3044b919bc
commit bf3816c3db
3 files changed
+16 -5

No files matched your search

+2 -2
View File
@@ -15,14 +15,14 @@ class JsonExtension implements Extension {
$this->register($context);
}
}
public function parse(/*\Picae\Compiler\Context*/ &$context, ?string $arguments, string $token)
{
$flag = $this->flags;
switch ($token) {
case "json.pretty":
$flag = \JSON_PRETTY_PRINT;
$flag |= \JSON_PRETTY_PRINT;
break;
case "json.html":
+11
View File
@@ -170,6 +170,17 @@ class UrlExtension implements Extension {
}
if ( array_key_exists($variable, $arguments) ) {
$value = $arguments[ $item[1] ];
}
else if ( isset($default) ) {
$value = $default;
}
else {
$variable = $item[1];
}
if ( array_key_exists($variable, $arguments) ) {
$value = $arguments[ $item[1] ];
}