namespace MediaWiki\Tidy;
+/**
+ * @deprecated since 1.32, use RemexDriver
+ */
class RaggettInternalPHP extends RaggettBase {
/**
* Use the HTML tidy extension to use the tidy library in-process,
*
* @param string $text HTML to check
* @param bool $stderr Whether to read result from error status instead of output
- * @param int &$retval Exit code (-1 on internal error)
+ * @param int|null &$retval Exit code (-1 on internal error)
* @return string|null
*/
protected function cleanWrapped( $text, $stderr = false, &$retval = null ) {
$retval = $tidy->getStatus();
if ( $retval == 2 ) {
// 2 is magic number for fatal error
- // http://www.php.net/manual/en/function.tidy-get-status.php
+ // https://secure.php.net/manual/en/tidy.getstatus.php
$cleansource = null;
} else {
$cleansource = tidy_get_output( $tidy );