Passed
Pull Request — master (#209)
by
unknown
03:45 queued 01:21
created
action/editor.php 1 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.
parser/ParagraphNode.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,9 +28,13 @@
 block discarded – undo
28 28
     {
29 29
         $doc = '';
30 30
         foreach ($this->subnodes as $subnode) {
31
-            if ($subnode instanceof \dokuwiki\plugin\prosemirror\parser\ParagraphNode) $doc .= "\n";
31
+            if ($subnode instanceof \dokuwiki\plugin\prosemirror\parser\ParagraphNode) {
32
+                $doc .= "\n";
33
+            }
32 34
             $doc .= $subnode->toSyntax();
33
-            if ($subnode instanceof \dokuwiki\plugin\prosemirror\parser\ParagraphNode) $doc .= "\n";
35
+            if ($subnode instanceof \dokuwiki\plugin\prosemirror\parser\ParagraphNode) {
36
+                $doc .= "\n";
37
+            }
34 38
         }
35 39
         return $doc;
36 40
     }
Please login to merge, or discard this patch.