aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/Parsing/Handler/Preformatted.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/Parsing/Handler/Preformatted.php')
-rw-r--r--inc/Parsing/Handler/Preformatted.php11
1 files changed, 5 insertions, 6 deletions
diff --git a/inc/Parsing/Handler/Preformatted.php b/inc/Parsing/Handler/Preformatted.php
index 41beb662d..bda7dfa24 100644
--- a/inc/Parsing/Handler/Preformatted.php
+++ b/inc/Parsing/Handler/Preformatted.php
@@ -4,15 +4,14 @@ namespace dokuwiki\Parsing\Handler;
class Preformatted extends AbstractRewriter
{
-
protected $pos;
- protected $text ='';
+ protected $text = '';
/** @inheritdoc */
public function finalise()
{
$last_call = end($this->calls);
- $this->writeCall(array('preformatted_end',array(), $last_call[2]));
+ $this->writeCall(['preformatted_end', [], $last_call[2]]);
$this->process();
$this->callWriter->finalise();
@@ -35,11 +34,11 @@ class Preformatted extends AbstractRewriter
break;
case 'preformatted_end':
if (trim($this->text)) {
- $this->callWriter->writeCall(array('preformatted', array($this->text), $this->pos));
+ $this->callWriter->writeCall(['preformatted', [$this->text], $this->pos]);
}
// see FS#1699 & FS#1652, add 'eol' instructions to ensure proper triggering of following p_open
- $this->callWriter->writeCall(array('eol', array(), $this->pos));
- $this->callWriter->writeCall(array('eol', array(), $this->pos));
+ $this->callWriter->writeCall(['eol', [], $this->pos]);
+ $this->callWriter->writeCall(['eol', [], $this->pos]);
break;
}
}