includes/HookContainer/HookRunner.php
File HookRunner.php
has 4035 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace MediaWiki\HookContainer;
use Article;
HookRunner
has 527 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class HookRunner implements
\MediaWiki\Actions\Hook\GetActionNameHook,
\MediaWiki\Auth\Hook\AuthManagerLoginAuthenticateAuditHook,
\MediaWiki\Auth\Hook\ExemptFromAccountCreationThrottleHook,
\MediaWiki\Auth\Hook\LocalUserCreatedHook,
Method onShowSearchHit
has 12 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onShowSearchHit( $searchPage, $result, $terms, &$link,
&$redirect, &$section, &$extract, &$score, &$size, &$date, &$related, &$html
Method onImageBeforeProduceHTML
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onImageBeforeProduceHTML( $linker, &$title, &$file,
&$frameParams, &$handlerParams, &$time, &$res, $parser, &$query, &$widthOption
Method onDifferenceEngineNewHeader
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onDifferenceEngineNewHeader( $differenceEngine, &$newHeader,
$formattedRevisionTools, $nextlink, $rollback, $newminor, $diffOnly, $rdel,
$unhide
Method onChangeTagsAfterUpdateTags
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onChangeTagsAfterUpdateTags( $addedTags, $removedTags,
$prevTags, $rc_id, $rev_id, $log_id, $params, $rc, $user
Method onPageContentSave
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onPageContentSave( $wikiPage, $user, $content, &$summary,
$isminor, $iswatch, $section, $flags, $status
Method onPageUndeleteComplete
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ProperPageIdentity $page,
Authority $restorer,
string $reason,
RevisionRecord $restoredRev,
ManualLogEntry $logEntry,
Method onDifferenceEngineOldHeader
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onDifferenceEngineOldHeader( $differenceEngine, &$oldHeader,
$prevlink, $oldminor, $diffOnly, $ldel, $unhide
Method onEmailUserSendEmail
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
Authority $from,
MailAddress $fromAddress,
UserEmailContact $to,
MailAddress $toAddress,
string $subject,
Method onFormatAutocomments
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onFormatAutocomments( &$comment, $pre, $auto, $post, $title,
$local, $wikiId
Method onArticleDeleteComplete
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onArticleDeleteComplete( $wikiPage, $user, $reason, $id,
$content, $logEntry, $archivedRevisionCount
Method onBeforeRevertedTagUpdate
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onBeforeRevertedTagUpdate( $wikiPage, $user,
$summary, $flags, $revisionRecord, $editResult, &$approved
Method onChangesListSpecialPageQuery
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onChangesListSpecialPageQuery( $name, &$tables, &$fields,
&$conds, &$query_options, &$join_conds, $opts
Method onPageMoveComplete
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onPageMoveComplete( $old, $new, $user, $pageid, $redirid, $reason, $revision ) {
Method onPageMoveCompleting
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onPageMoveCompleting( $old, $new, $user, $pageid, $redirid, $reason, $revision ) {
Method onUserGroupsChanged
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onUserGroupsChanged( $user, $added, $removed, $performer,
$reason, $oldUGMs, $newUGMs
Method onLogLine
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onLogLine( $log_type, $log_action, $title, $paramArray,
&$comment, &$revert, $time
Method onPageUndelete
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ProperPageIdentity $page,
Authority $performer,
string $reason,
bool $unsuppress,
array $timestamps,
Method onShowSearchHitTitle
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onShowSearchHitTitle( &$title, &$titleSnippet, $result, $terms,
$specialSearch, &$query, &$attributes
Method onPageDeleteComplete
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ProperPageIdentity $page,
Authority $deleter,
string $reason,
int $pageID,
RevisionRecord $deletedRev,
Method onChangesListInsertArticleLink
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onChangesListInsertArticleLink( $changesList, &$articlelink,
&$s, $rc, $unpatrolled, $watched
Method onEditFilterMergedContent
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onEditFilterMergedContent( $context, $content, $status,
$summary, $user, $minoredit
Method onArticleDelete
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onArticleDelete( $wikiPage, $user, &$reason, &$error, &$status,
$suppress
Method onGetDifferenceEngine
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onGetDifferenceEngine( $context, $old, $new, $refreshCache,
$unhide, &$differenceEngine
Method onBeforeInitialize
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onBeforeInitialize( $title, $unused, $output, $user, $request,
$mediaWiki
Method onContentGetParserOutput
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onContentGetParserOutput( $content, $title, $revId, $options,
$generateHtml, &$parserOutput
Method onHtmlPageLinkRendererBegin
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onHtmlPageLinkRendererBegin( $linkRenderer, $target, &$text,
&$customAttribs, &$query, &$ret
Method onEnhancedChangesListModifyLineData
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onEnhancedChangesListModifyLineData( $changesList, &$data,
$block, $rc, &$classes, &$attribs
Method onGetRelativeTimestamp
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onGetRelativeTimestamp( &$output, &$diff, $timestamp,
$relativeTo, $user, $lang
Method onTitleQuickPermissions
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onTitleQuickPermissions( $title, $user, $action, &$errors,
$doExpensiveQueries, $short
Method onMediaWikiPerformAction
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onMediaWikiPerformAction( $output, $article, $title, $user,
$request, $mediaWiki
Method onPageSaveComplete
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onPageSaveComplete( $wikiPage, $user, $summary, $flags,
$revisionRecord, $editResult
Method onTempUserCreatedRedirect
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
Session $session,
UserIdentity $user,
string $returnTo,
string $returnToQuery,
string $returnToAnchor,
Method onHtmlPageLinkRendererEnd
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onHtmlPageLinkRendererEnd( $linkRenderer, $target, $isKnown,
&$text, &$attribs, &$ret
Method onModifyExportQuery
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onModifyExportQuery( $db, &$tables, $cond, &$opts,
&$join_conds, &$conds
Method onUserMailerTransformMessage
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onUserMailerTransformMessage( $to, $from, &$subject, &$headers,
&$body, &$error
Method onSkinEditSectionLinks
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onSkinEditSectionLinks( $skin, $title, $section, $tooltip,
&$result, $lang
Method onSpecialNewpagesConditions
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onSpecialNewpagesConditions( $special, $opts, &$conds,
&$tables, &$fields, &$join_conds
Method onSearchDataForIndex2
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onSearchDataForIndex2( array &$fields, \ContentHandler $handler,
\WikiPage $page, ParserOutput $output, \SearchEngine $engine, RevisionRecord $revision
Method onLocalFile__getHistory
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onLocalFile__getHistory( $file, &$tables, &$fields, &$conds,
&$opts, &$join_conds
Method onUploadVerifyUpload
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onUploadVerifyUpload( $upload, $user, $props, $comment,
$pageText, &$error
Method onGetExtendedMetadata
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onGetExtendedMetadata( &$combinedMeta, $file, $context,
$single, &$maxCacheTime
Method onAlternateUserMailer
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onAlternateUserMailer( $headers, $to, $from, $subject, $body ) {
Method onContribsPager__reallyDoQuery
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onContribsPager__reallyDoQuery( &$data, $pager, $offset,
$limit, $descending
Method onDeletedContributionsLineEnding
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onDeletedContributionsLineEnding( $page, &$ret, $row,
&$classes, &$attribs
Method onPermissionErrorAudit
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
LinkTarget $title,
UserIdentity $user,
string $action,
string $rigor,
array $errors
Method onEmailUser
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onEmailUser( &$to, &$from, &$subject, &$text, &$error ) {
Method onFileDeleteComplete
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onFileDeleteComplete( $file, $oldimage, $article, $user,
$reason
Method onAfterImportPage
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onAfterImportPage( $title, $foreignTitle, $revCount,
$sRevCount, $pageInfo
Method onGetHumanTimestamp
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onGetHumanTimestamp( &$output, $timestamp, $relativeTo, $user,
$lang
Method onArticleUndelete
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onArticleUndelete( $title, $create, $comment, $oldPageId,
$restoredPages
Method onEditFilter
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onEditFilter( $editor, $text, $section, &$error, $summary ) {
Method onDeletedContribsPager__reallyDoQuery
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onDeletedContribsPager__reallyDoQuery( &$data, $pager, $offset,
$limit, $descending
Method onContributionsLineEnding
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onContributionsLineEnding( $page, &$ret, $row, &$classes,
&$attribs
Method onMimeMagicGuessFromContent
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onMimeMagicGuessFromContent( $mimeMagic, &$head, &$tail, $file,
&$mime
Method onPageHistoryLineEnding
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onPageHistoryLineEnding( $historyAction, &$row, &$s, &$classes,
&$attribs
Method onParserGetVariableValueSwitch
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onParserGetVariableValueSwitch( $parser, &$variableCache,
$magicWordId, &$ret, $frame
Method onLogEventsListShowLogExtract
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onLogEventsListShowLogExtract( &$s, $types, $page, $user,
$param
Method onNewPagesLineEnding
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onNewPagesLineEnding( $page, &$ret, $row, &$classes, &$attribs ) {
Method onParserOutputStashForEdit
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onParserOutputStashForEdit( $page, $content, $output, $summary,
$user
Method onSessionCheckInfo
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onSessionCheckInfo( &$reason, $info, $request, $metadata,
$data
Method onLinkerMakeExternalLink
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onLinkerMakeExternalLink( &$url, &$text, &$link, &$attribs,
$linkType
Method onMultiContentSave
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onMultiContentSave( $renderedRevision, $user, $summary, $flags,
$status
Method onSelfLinkBegin
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onSelfLinkBegin( $nt, &$html, &$trail, &$prefix, &$ret ) {
Method onParserCacheSaveComplete
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onParserCacheSaveComplete( $parserCache, $parserOutput, $title,
$popts, $revId
Method onParserLimitReportFormat
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onParserLimitReportFormat( $key, &$value, &$report, $isHTML,
$localize
Method onRevisionFromEditComplete
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onRevisionFromEditComplete( $wikiPage, $rev, $originalRevId, $user, &$tags ) {
Method onMarkPatrolled
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onMarkPatrolled( $rcid, $user, $wcOnlySysopsCanPatrol, $auto,
&$tags
Method onInitializeArticleMaybeRedirect
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onInitializeArticleMaybeRedirect( $title, $request,
&$ignoreRedirect, &$target, &$article
Method onNewDifferenceEngine
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onNewDifferenceEngine( $title, &$oldId, &$newId, $old, $new ) {
Method onPreferencesFormPreSave
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onPreferencesFormPreSave( $formData, $form, $user, &$result,
$oldUserOptions
Method onSearchDataForIndex
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onSearchDataForIndex( &$fields, $handler, $page, $output, $engine ) {
Method onTitleMove
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onTitleMove( $old, $nt, $user, $reason, &$status ) {
Method onMovePageCheckPermissions
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onMovePageCheckPermissions( $oldTitle, $newTitle, $user,
$reason, $status
Method onSpecialSearchProfileForm
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onSpecialSearchProfileForm( $search, &$form, $profile, $term,
$opts
Method onPrefixSearchBackend
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onPrefixSearchBackend( $ns, $search, $limit, &$results,
$offset
Method onLogEventsListLineEnding
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onLogEventsListLineEnding( $page, &$ret, $entry, &$classes,
&$attribs
Method onOldChangesListRecentChangesLine
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onOldChangesListRecentChangesLine( $changeslist, &$s, $rc,
&$classes, &$attribs
Method onWatchlistEditorBuildRemoveLine
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onWatchlistEditorBuildRemoveLine( &$tools, $title, $redirect,
$skin, &$link
Method onPageDelete
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ProperPageIdentity $page,
Authority $deleter,
string $reason,
StatusValue $status,
bool $suppress
Method onSpecialRandomGetRandomTitle
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onSpecialRandomGetRandomTitle( &$randstr, &$isRedir,
&$namespaces, &$extra, &$title
Method onLinkerMakeMediaLinkFile
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onLinkerMakeMediaLinkFile( $title, $file, &$html, &$attribs,
&$ret
Method onXmlDumpWriterWriteRevision
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function onXmlDumpWriterWriteRevision( $obj, &$out, $row, $text, $rev ) {