$real_names = [];
$user_names = [];
$anon_ips = [];
- $linkRenderer = MediaWikiServices::getLinkRenderer();
+ $linkRenderer = MediaWikiServices::getInstance()->getLinkRenderer();
# Sift for real versus user names
/** @var $user User */
}
}
- /**
- * defines must comply with ^define\s*([^\s=]*)\s*=\s?'\{\$([^\}]*)\}';
- *
- * @param resource $fp
- * @param bool|string $lineCallback
- * @param bool|callable $resultCallback
- * @param string $fname
- * @param bool|callable $inputCallback
- * @return bool|string
- */
- function sourceStream( $fp, $lineCallback = false, $resultCallback = false,
- $fname = __METHOD__, $inputCallback = false ) {
+ function sourceStream(
+ $fp,
+ callable $lineCallback = null,
+ callable $resultCallback = null,
+ $fname = __METHOD__, callable $inputCallback = null
+ ) {
$cmd = '';
$done = false;
$dollarquote = false;
$replacements = [];
-
+ // Defines must comply with ^define\s*([^\s=]*)\s*=\s?'\{\$([^\}]*)\}';
while ( !feof( $fp ) ) {
if ( $lineCallback ) {
call_user_func( $lineCallback );
}
/**
- * @param bool|Language $lang Optional language to fetch description in.
+ * @param Language|null $lang Optional language to fetch description in.
* @return string|false
*/
- function getDescriptionText( $lang = false ) {
+ function getDescriptionText( $lang = null ) {
global $wgLang;
if ( !$this->repo->fetchDescription ) {