Code Duplication    Length = 9-9 lines in 2 locations

class/doc-restructuredtext.php 2 locations

@@ 246-254 (lines=9) @@
243
	 * @param	string	$s_add
244
	 * @return	stirng
245
	 */
246
	public function AddToFooter ($s_html, $s_add) {
247
		$i = strrpos($s_html, '</body>');
248
		if (! (false === $i)) {
249
			$s_html = substr($s_html, 0, $i) . $s_add
250
				. "\n</body>\n</html>";
251
		}
252
253
		return $s_html;
254
	} // end of func AddToFooter
255
256
257
	/**
@@ 264-272 (lines=9) @@
261
	 * @param	string	$s_add
262
	 * @return	stirng
263
	 */
264
	public function AddToFooterBefore ($s_html, $s_add) {
265
		$i = strrpos($s_html, '<div id="footer">');
266
		if (! (false === $i)) {
267
			$s_html = substr($s_html, 0, $i) . $s_add . "\n"
268
				. substr($s_html, $i);
269
		}
270
271
		return $s_html;
272
	} // end of func AddToFooterBefore
273
274
275
	/**