@@ -75,6 +75,9 @@ discard block |
||
75 | 75 | return NULL; |
76 | 76 | } |
77 | 77 | |
78 | + /** |
|
79 | + * @param string $source |
|
80 | + */ |
|
78 | 81 | private function ensureEncodingPI($source, $encoding, $force = FALSE) { |
79 | 82 | $hasXmlPi = preg_match('(<\\?xml\\s)', $source); |
80 | 83 | if (!$force) { |
@@ -143,6 +146,10 @@ discard block |
||
143 | 146 | return NULL; |
144 | 147 | } |
145 | 148 | |
149 | + /** |
|
150 | + * @param string $contentType |
|
151 | + * @param Options $options |
|
152 | + */ |
|
146 | 153 | private function isFragment($contentType, $options) { |
147 | 154 | return ( |
148 | 155 | $contentType == 'html-fragment' || |