Completed
Push — master ( 5562f1...537be8 )
by Andreas
23s queued 14s
created
action/ajax.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
125 125
         if ($inner[0] === '#') {
126 126
             return dokuwiki\plugin\prosemirror\parser\LocalLinkNode::resolveLocalLink($inner, $curId);
127 127
         }
128
-       return \dokuwiki\plugin\prosemirror\parser\InternalLinkNode::resolveLink($inner, $curId);
128
+        return \dokuwiki\plugin\prosemirror\parser\InternalLinkNode::resolveLink($inner, $curId);
129 129
     }
130 130
 
131 131
     /**
Please login to merge, or discard this patch.
renderer.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -385,17 +385,17 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
parser/ParagraphNode.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,9 +29,13 @@
 block discarded – undo
29 29
     {
30 30
         $doc = '';
31 31
         foreach ($this->subnodes as $subnode) {
32
-            if (is_a($subnode, ParagraphNode::class)) $doc .= "\n";
32
+            if (is_a($subnode, ParagraphNode::class)) {
33
+                $doc .= "\n";
34
+            }
33 35
             $doc .= $subnode->toSyntax();
34
-            if (is_a($subnode, ParagraphNode::class)) $doc .= "\n";
36
+            if (is_a($subnode, ParagraphNode::class)) {
37
+                $doc .= "\n";
38
+            }
35 39
         }
36 40
         return $doc;
37 41
     }
Please login to merge, or discard this patch.
action/editor.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -94,12 +94,12 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,9 @@
 block discarded – undo
67 67
         $form = $event->data;
68 68
 
69 69
         // return early if content is not editable
70
-        if ($this->isReadOnly($form)) return;
70
+        if ($this->isReadOnly($form)) {
71
+            return;
72
+        }
71 73
 
72 74
 
73 75
         $useWYSIWYG = get_doku_pref('plugin_prosemirror_useWYSIWYG', false);
Please login to merge, or discard this patch.
lang/zh/settings.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,4 +8,4 @@
 block discarded – undo
8 8
  * @作者 Fivemoons <[email protected]>
9 9
  *
10 10
  */
11
-$lang['forceWYSIWYG']          = '强制所有用户使用可视化编辑器(除了管理员)';
11
+$lang['forceWYSIWYG'] = '强制所有用户使用可视化编辑器(除了管理员)';
Please login to merge, or discard this patch.