Skip to content

Commit 5285d14

Browse files
committed
Code refactor
1 parent 8f2c653 commit 5285d14

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

syntax/output.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
class syntax_plugin_struct_output extends SyntaxPlugin
1818
{
19-
protected $hasBeenRendered = array('metadata'=>false, 'xhtml'=>false);
19+
protected $hasBeenRendered = array('metadata' => false, 'xhtml' => false);
2020

2121
protected const XHTML_OPEN = '<div id="plugin__struct_output">';
2222
protected const XHTML_CLOSE = '</div>';
@@ -115,8 +115,7 @@ public function render($format, Doku_Renderer $renderer, $data)
115115
// do not render the output twice on the same page, e.g. when another page has been included
116116
if ($format == 'metadata') {
117117
$this->hasBeenRendered['metadata'] = true;
118-
}
119-
else if ($format == 'xhtml') {
118+
} elseif ($format == 'xhtml') {
120119
$this->hasBeenRendered['xhtml'] = true;
121120
}
122121
try {

syntax/table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public function render($format, Doku_Renderer $renderer, $config)
114114
} else {
115115
$search = $this->getSearchConfig($config);
116116
}
117-
117+
118118
if ($format === 'struct_csv' || $format === "metadata") {
119119
// no pagination in export or metadata render
120120
$search->setLimit(0);

0 commit comments

Comments
 (0)