Passed
Pull Request — master (#113)
by
unknown
09:00
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
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 					$extraTag .= 'enable_line_numbers="true", ';
49 49
 				else
50 50
 					$extraTag .= 'enable_line_numbers="false", ';
51
-				$extraTag .= 'start_line_numbers_at="' . abs($start_line_numbers_at) .'"';
51
+				$extraTag .= 'start_line_numbers_at="' . abs($start_line_numbers_at) . '"';
52 52
 			}
53 53
 			else
54 54
 			{
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 			$highlight_lines_extra = $this->data['attrs']['data-hle'];
61 61
 			$arr = explode(',', $highlight_lines_extra);
62 62
 			$str = '';
63
-			foreach($arr as $val)
63
+			foreach ($arr as $val)
64 64
 			{
65 65
 				if ($str) $str .= ',';
66 66
 				if (is_numeric($val)) 
Please login to merge, or discard this patch.