Passed
Pull Request — master (#109)
by
unknown
15:58
created
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   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
362 362
 			{
363 363
 				$str = '';
364 364
 				asort($ext['highlight_lines_extra']);
365
-				foreach($ext['highlight_lines_extra'] as $hle)
365
+				foreach ($ext['highlight_lines_extra'] as $hle)
366 366
 				{
367 367
 					if ($str) $str .= ',';
368 368
 					if ($start_line_numbers_at > 0) $hle += $start_line_numbers_at - 1;
@@ -428,17 +428,17 @@  discard block
 block discarded – undo
428 428
         $node = new Node('rss');
429 429
         $node->attr('url', hsc($url));
430 430
         $node->attr('max', $params['max']);
431
-        $node->attr('reverse', (bool)$params['reverse']);
432
-        $node->attr('author', (bool)$params['author']);
433
-        $node->attr('date', (bool)$params['date']);
434
-        $node->attr('details', (bool)$params['details']);
431
+        $node->attr('reverse', (bool) $params['reverse']);
432
+        $node->attr('author', (bool) $params['author']);
433
+        $node->attr('date', (bool) $params['date']);
434
+        $node->attr('details', (bool) $params['details']);
435 435
 
436 436
         if ($params['refresh'] % 86400 === 0) {
437
-            $refresh = $params['refresh']/86400 . 'd';
437
+            $refresh = $params['refresh'] / 86400 . 'd';
438 438
         } else if ($params['refresh'] % 3600 === 0) {
439
-            $refresh = $params['refresh']/3600 . 'h';
439
+            $refresh = $params['refresh'] / 3600 . 'h';
440 440
         } else {
441
-            $refresh = $params['refresh']/60 . 'm';
441
+            $refresh = $params['refresh'] / 60 . 'm';
442 442
         }
443 443
 
444 444
         $node->attr('refresh', trim($refresh));
@@ -589,7 +589,7 @@  discard block
 block discarded – undo
589 589
 
590 590
     public function smiley($smiley)
591 591
     {
592
-        if(array_key_exists($smiley, $this->smileys)) {
592
+        if (array_key_exists($smiley, $this->smileys)) {
593 593
             $node = new Node('smiley');
594 594
             $node->attr('icon', $this->smileys[$smiley]);
595 595
             $node->attr('syntax', $smiley);
Please login to merge, or discard this patch.
parser/CodeBlockNode.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 					$extraTag .= 'enable_line_numbers="true", ';
52 52
 				else
53 53
 					$extraTag .= 'enable_line_numbers="false", ';
54
-				$extraTag .= 'start_line_numbers_at="' . abs($start_line_numbers_at) .'"';
54
+				$extraTag .= 'start_line_numbers_at="' . abs($start_line_numbers_at) . '"';
55 55
 			}
56 56
 			else
57 57
 			{
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 			$highlight_lines_extra = $TAG['data-hle'];
64 64
 			$arr = explode(',', $highlight_lines_extra);
65 65
 			$str = '';
66
-			foreach($arr as $val)
66
+			foreach ($arr as $val)
67 67
 			{
68 68
 				if ($str) $str .= ',';
69 69
 				if (is_numeric($val)) 
Please login to merge, or discard this patch.