src/Renderer/RichRenderer.php 1 location
|
@@ 303-311 (lines=9) @@
|
| 300 |
|
if (is_array($rep->contents)) { |
| 301 |
|
$output = ''; |
| 302 |
|
|
| 303 |
|
if ($o instanceof InstanceObject && $rep->getName() === 'properties') { |
| 304 |
|
foreach (self::sortProperties($rep->contents, self::$sort) as $obj) { |
| 305 |
|
$output .= $this->render($obj); |
| 306 |
|
} |
| 307 |
|
} else { |
| 308 |
|
foreach ($rep->contents as $obj) { |
| 309 |
|
$output .= $this->render($obj); |
| 310 |
|
} |
| 311 |
|
} |
| 312 |
|
|
| 313 |
|
return $output; |
| 314 |
|
} elseif (is_string($rep->contents)) { |
src/Renderer/TextRenderer.php 1 location
|
@@ 199-207 (lines=9) @@
|
| 196 |
|
$children = ''; |
| 197 |
|
|
| 198 |
|
if ($o->value && is_array($o->value->contents)) { |
| 199 |
|
if ($o instanceof InstanceObject && $o->value->getName() === 'properties') { |
| 200 |
|
foreach (self::sortProperties($o->value->contents, self::$sort) as $obj) { |
| 201 |
|
$children .= $this->render($obj); |
| 202 |
|
} |
| 203 |
|
} else { |
| 204 |
|
foreach ($o->value->contents as $child) { |
| 205 |
|
$children .= $this->render($child); |
| 206 |
|
} |
| 207 |
|
} |
| 208 |
|
} |
| 209 |
|
|
| 210 |
|
if ($children) { |