@@ -107,7 +107,7 @@ |
||
107 | 107 | $newList = array(); |
108 | 108 | |
109 | 109 | // Traverse the tree |
110 | - $rec = function ($node) use (&$rec, &$newList, &$arrayList) { |
|
110 | + $rec = function($node) use (&$rec, &$newList, &$arrayList) { |
|
111 | 111 | /* @var $node DOMElement */ |
112 | 112 | |
113 | 113 | foreach ($arrayList as $index => $compareNode) { |
@@ -454,7 +454,7 @@ |
||
454 | 454 | $last_tag = null; |
455 | 455 | } |
456 | 456 | |
457 | - $e = function ($s) { return htmlspecialchars($s, ENT_QUOTES, 'UTF-8'); }; |
|
457 | + $e = function($s) { return htmlspecialchars($s, ENT_QUOTES, 'UTF-8'); }; |
|
458 | 458 | |
459 | 459 | return $e($s); |
460 | 460 | } |
@@ -16,7 +16,7 @@ |
||
16 | 16 | */ |
17 | 17 | public function highlight($source, $language = '') |
18 | 18 | { |
19 | - $e = function ($s) { |
|
19 | + $e = function($s) { |
|
20 | 20 | return htmlspecialchars($s, ENT_QUOTES, 'UTF-8'); |
21 | 21 | }; |
22 | 22 |
@@ -50,7 +50,7 @@ |
||
50 | 50 | */ |
51 | 51 | private function xml2xhtml($xml) |
52 | 52 | { |
53 | - return preg_replace_callback('#<(\w+)([^>]*)\s*/>#s', function ($m) { |
|
53 | + return preg_replace_callback('#<(\w+)([^>]*)\s*/>#s', function($m) { |
|
54 | 54 | $xhtml_tags = array( |
55 | 55 | 'br', 'hr', 'input', 'frame', 'img', 'area', 'link', 'col', |
56 | 56 | 'base', 'basefont', 'param' |