Passed
Push — master ( 46252d...46ecf4 )
by
unknown
03:20 queued 11s
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.
action/editor.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         }
61 61
 
62 62
         /** @var Doku_Form $form */
63
-        $form =& $event->data;
63
+        $form = & $event->data;
64 64
         $useWYSIWYG = get_doku_pref('plugin_prosemirror_useWYSIWYG', false);
65 65
 
66 66
         $prosemirrorJSON = '';
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         $form->addElement($this->buildToggleButton());
87 87
 
88 88
         // output data and editor field
89
-        $form->addHidden('prosemirror_json',$prosemirrorJSON);
89
+        $form->addHidden('prosemirror_json', $prosemirrorJSON);
90 90
         $form->insertElement(1, '<div class="prosemirror_wrapper" id="prosemirror__editor"></div>');
91 91
     }
92 92
 
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
             'id' => 'prosemirror-linkform',
147 147
             'style' => 'display: none;',
148 148
         ]);
149
-        $linkForm->addFieldsetOpen('Links')->addClass('js-link-fieldset');;
149
+        $linkForm->addFieldsetOpen('Links')->addClass('js-link-fieldset'); ;
150 150
         $iwOptions = array_keys(getInterwiki());
151 151
         $linkForm->addDropdown('iwshortcut', $iwOptions, 'InterWiki')->attr('required', 'required');
152 152
 
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.