Passed
Pull Request — master (#109)
by
unknown
15:58
created
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.