Passed
Pull Request — master (#65)
by Michael
03:20
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
@@ -349,17 +349,17 @@  discard block
 block discarded – undo
349 349
         $node = new Node('rss');
350 350
         $node->attr('url', hsc($url));
351 351
         $node->attr('max', $params['max']);
352
-        $node->attr('reverse', (bool)$params['reverse']);
353
-        $node->attr('author', (bool)$params['author']);
354
-        $node->attr('date', (bool)$params['date']);
355
-        $node->attr('details', (bool)$params['details']);
352
+        $node->attr('reverse', (bool) $params['reverse']);
353
+        $node->attr('author', (bool) $params['author']);
354
+        $node->attr('date', (bool) $params['date']);
355
+        $node->attr('details', (bool) $params['details']);
356 356
 
357 357
         if ($params['refresh'] % 86400 === 0) {
358
-            $refresh = $params['refresh']/86400 . 'd';
358
+            $refresh = $params['refresh'] / 86400 . 'd';
359 359
         } else if ($params['refresh'] % 3600 === 0) {
360
-            $refresh = $params['refresh']/3600 . 'h';
360
+            $refresh = $params['refresh'] / 3600 . 'h';
361 361
         } else {
362
-            $refresh = $params['refresh']/60 . 'm';
362
+            $refresh = $params['refresh'] / 60 . 'm';
363 363
         }
364 364
 
365 365
         $node->attr('refresh', trim($refresh));
@@ -504,7 +504,7 @@  discard block
 block discarded – undo
504 504
 
505 505
     function smiley($smiley)
506 506
     {
507
-        if(array_key_exists($smiley, $this->smileys)) {
507
+        if (array_key_exists($smiley, $this->smileys)) {
508 508
             $node = new Node('smiley');
509 509
             $node->attr('icon', $this->smileys[$smiley]);
510 510
             $node->attr('syntax', $smiley);
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.