Passed
Push — master ( 360ca5...ca6dc3 )
by Andreas
04:42 queued 01:57
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 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -88,14 +88,14 @@  discard block
 block discarded – undo
88 88
         /** @var Doku_Form|\dokuwiki\Form\Form $form */
89 89
         $form = $event->data;
90 90
 
91
-        if(is_a($form, \dokuwiki\Form\Form::class)) {
91
+        if (is_a($form, \dokuwiki\Form\Form::class)) {
92 92
             $form->addElement($this->buildToggleButton());
93
-            $form->setHiddenField('prosemirror_json',$prosemirrorJSON);
93
+            $form->setHiddenField('prosemirror_json', $prosemirrorJSON);
94 94
             $form->addHTML('<div class="prosemirror_wrapper" id="prosemirror__editor"></div>', 1);
95 95
         } else {
96 96
             // todo remove when old stable is no longer supported
97 97
             $form->addElement($this->buildOldToggleButton());
98
-            $form->addHidden('prosemirror_json',$prosemirrorJSON);
98
+            $form->addHidden('prosemirror_json', $prosemirrorJSON);
99 99
             $form->insertElement(1, '<div class="prosemirror_wrapper" id="prosemirror__editor"></div>');
100 100
         }
101 101
     }
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
             'id' => 'prosemirror-linkform',
176 176
             'style' => 'display: none;',
177 177
         ]);
178
-        $linkForm->addFieldsetOpen('Links')->addClass('js-link-fieldset');;
178
+        $linkForm->addFieldsetOpen('Links')->addClass('js-link-fieldset'); ;
179 179
         $iwOptions = array_keys(getInterwiki());
180 180
         $linkForm->addDropdown('iwshortcut', $iwOptions, 'InterWiki')->attr('required', 'required');
181 181
 
Please login to merge, or discard this patch.