Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding TODO comment for OPT 3.0.

  • Loading branch information...
commit c90085bee24e7a4643420b4ff03e44a31ba5445e 1 parent a40b76c
Tomasz Jędrzejewski zyxist authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/Opt/Instruction/Attribute.php
5 lib/Opt/Instruction/Attribute.php
View
@@ -140,7 +140,7 @@ public function processNode(Opt_Xml_Node $node)
$parent = $node->getParent();
$returnStyle = $node->get('attributeValueStyle');
- $returnStyle = (is_null($returnStyle) ? self::ATTR_DISPLAY : $returnStyle);
+ $returnStyle = (null === $returnStyle ? self::ATTR_DISPLAY : $returnStyle);
if($returnStyle == self::ATTR_DISPLAY)
{
@@ -200,6 +200,9 @@ public function processNode(Opt_Xml_Node $node)
// Construct the value for the attribute.
if($node->hasChildren())
{
+ // TODO: It turned out that using opt:switch here is nearly impossible due to
+ // the compilation mechanism construction. This must be solved somehow in OPT 3.0.
+
// The more complex statement with opt:value nodes...
list($pairs, $else) = $this->_getValuePairs($node, $params);
Please sign in to comment.
Something went wrong with that request. Please try again.