@@ -20,7 +20,7 @@ |
||
20 | 20 | * |
21 | 21 | * @param string $type |
22 | 22 | * @param Config $config |
23 | - * @return RendererInterface |
|
23 | + * @return string |
|
24 | 24 | * @throws Exception |
25 | 25 | */ |
26 | 26 | public static function createRenderer($type, Config $config = null) |
@@ -149,6 +149,7 @@ discard block |
||
149 | 149 | |
150 | 150 | /** |
151 | 151 | * |
152 | + * @param string $name |
|
152 | 153 | */ |
153 | 154 | public function addSetting($name, $value = '') |
154 | 155 | { |
@@ -226,6 +227,7 @@ discard block |
||
226 | 227 | |
227 | 228 | /** |
228 | 229 | * |
230 | + * @param string $s |
|
229 | 231 | */ |
230 | 232 | public function parse($s) |
231 | 233 | { |
@@ -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' |