@@ -385,17 +385,17 @@ discard block |
||
| 385 | 385 | $node = new Node('rss'); |
| 386 | 386 | $node->attr('url', hsc($url)); |
| 387 | 387 | $node->attr('max', $params['max']); |
| 388 | - $node->attr('reverse', (bool)$params['reverse']); |
|
| 389 | - $node->attr('author', (bool)$params['author']); |
|
| 390 | - $node->attr('date', (bool)$params['date']); |
|
| 391 | - $node->attr('details', (bool)$params['details']); |
|
| 388 | + $node->attr('reverse', (bool) $params['reverse']); |
|
| 389 | + $node->attr('author', (bool) $params['author']); |
|
| 390 | + $node->attr('date', (bool) $params['date']); |
|
| 391 | + $node->attr('details', (bool) $params['details']); |
|
| 392 | 392 | |
| 393 | 393 | if ($params['refresh'] % 86400 === 0) { |
| 394 | - $refresh = $params['refresh']/86400 . 'd'; |
|
| 394 | + $refresh = $params['refresh'] / 86400 . 'd'; |
|
| 395 | 395 | } else if ($params['refresh'] % 3600 === 0) { |
| 396 | - $refresh = $params['refresh']/3600 . 'h'; |
|
| 396 | + $refresh = $params['refresh'] / 3600 . 'h'; |
|
| 397 | 397 | } else { |
| 398 | - $refresh = $params['refresh']/60 . 'm'; |
|
| 398 | + $refresh = $params['refresh'] / 60 . 'm'; |
|
| 399 | 399 | } |
| 400 | 400 | |
| 401 | 401 | $node->attr('refresh', trim($refresh)); |
@@ -546,7 +546,7 @@ discard block |
||
| 546 | 546 | |
| 547 | 547 | public function smiley($smiley) |
| 548 | 548 | { |
| 549 | - if(array_key_exists($smiley, $this->smileys)) { |
|
| 549 | + if (array_key_exists($smiley, $this->smileys)) { |
|
| 550 | 550 | $node = new Node('smiley'); |
| 551 | 551 | $node->attr('icon', $this->smileys[$smiley]); |
| 552 | 552 | $node->attr('syntax', $smiley); |
@@ -94,12 +94,12 @@ discard block |
||
| 94 | 94 | |
| 95 | 95 | if (is_a($form, \dokuwiki\Form\Form::class)) { |
| 96 | 96 | $form->addElement($this->buildToggleButton(), 0); |
| 97 | - $form->setHiddenField('prosemirror_json',$prosemirrorJSON); |
|
| 97 | + $form->setHiddenField('prosemirror_json', $prosemirrorJSON); |
|
| 98 | 98 | $form->addHTML('<div class="prosemirror_wrapper" id="prosemirror__editor"></div>', 1); |
| 99 | 99 | } else { |
| 100 | 100 | // todo remove when old stable is no longer supported |
| 101 | 101 | $form->insertElement(0, $this->buildOldToggleButton()); |
| 102 | - $form->addHidden('prosemirror_json',$prosemirrorJSON); |
|
| 102 | + $form->addHidden('prosemirror_json', $prosemirrorJSON); |
|
| 103 | 103 | $form->insertElement(1, '<div class="prosemirror_wrapper" id="prosemirror__editor"></div>'); |
| 104 | 104 | } |
| 105 | 105 | } |
@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | 'id' => 'prosemirror-linkform', |
| 181 | 181 | 'style' => 'display: none;', |
| 182 | 182 | ]); |
| 183 | - $linkForm->addFieldsetOpen('Links')->addClass('js-link-fieldset');; |
|
| 183 | + $linkForm->addFieldsetOpen('Links')->addClass('js-link-fieldset'); ; |
|
| 184 | 184 | $iwOptions = array_keys(getInterwiki()); |
| 185 | 185 | $linkForm->addDropdown('iwshortcut', $iwOptions, 'InterWiki')->attr('required', 'required'); |
| 186 | 186 | |