Showing 11,545 of 11,545 total issues
Method mergeHtmlMetaDataFrom
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function mergeHtmlMetaDataFrom( ParserOutput $source ): void {
// HTML and HTTP
$this->mHeadItems = self::mergeMixedList( $this->mHeadItems, $source->getHeadItems() );
$this->addModules( $source->getModules() );
$this->addModuleStyles( $source->getModuleStyles() );
Method internalParse
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function internalParse( $text, $isMain = true, $frame = false ) {
$origText = $text;
# Hook to suspend the parser in this state
if ( !$this->hookRunner->onParserBeforeInternalParse( $this, $text, $this->mStripState ) ) {
Method convertPageBundleVariant
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function convertPageBundleVariant(
PageBundle $pageBundle,
Bcp47Code $targetVariant,
?Bcp47Code $sourceVariant = null
): PageBundle {
Method saveContent
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function saveContent() {
$logRestrictions = MediaWikiServices::getInstance()->getMainConfig()->get( MainConfigNames::LogRestrictions );
$dbw = MediaWikiServices::getInstance()->getConnectionProvider()->getPrimaryDatabase();
Method insertNewUser
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private static function insertNewUser( callable $insertActor, $name, $params = [] ) {
foreach ( [ 'password', 'newpassword', 'newpass_time', 'password_expires' ] as $field ) {
if ( isset( $params[$field] ) ) {
wfDeprecated( __METHOD__ . " with param '$field'", '1.27' );
unset( $params[$field] );
Method verifyFile
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function verifyFile() {
$config = MediaWikiServices::getInstance()->getMainConfig();
$verifyMimeType = $config->get( MainConfigNames::VerifyMimeType );
$disableUploadScriptChecks = $config->get( MainConfigNames::DisableUploadScriptChecks );
$status = $this->verifyPartialFile();
Method getHtml
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getHtml(): ParserOutput {
if ( $this->processedParserOutput ) {
return $this->processedParserOutput;
}
Method createNewContent
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function createNewContent() {
$contentHandlerFactory = $this->contentHandlerFactory;
$title = $this->page->getTitle();
$latestRevRecord = $this->revLookup->getRevisionByTitle( $this->pageIdentity );
Method rebuildRecentChangesTablePass4
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function rebuildRecentChangesTablePass4() {
global $wgUseRCPatrol, $wgUseNPPatrol, $wgUseFilePatrol, $wgMiserMode;
$dbw = $this->getPrimaryDB();
Method getTextSpawnedOnce
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getTextSpawnedOnce( $address ) {
if ( is_int( $address ) || intval( $address ) ) {
$address = SqlBlobStore::makeAddressFromTextId( (int)$address );
}
Method execute
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute() {
$user = $this->getOption( 'user' );
$services = $this->getServiceContainer();
$userNameUtils = $services->getUserNameUtils();
$user = $userNameUtils->isIP( $user ) ? $user : $userNameUtils->getCanonical( $user );
Method updateBatch
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function updateBatch( IResultWrapper $res ) {
if ( !$this->dryRun ) {
$this->beginTransaction( $this->dbw, __METHOD__ );
}
foreach ( $res as $row ) {
Method __construct
has 15 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ServiceOptions $options,
SpecialPageFactory $specialPageFactory,
NamespaceInfo $nsInfo,
GroupPermissionsLookup $groupPermissionsLookup,
UserGroupManager $userGroupManager,
Method __construct
has 15 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
HookContainer $hookContainer,
JobQueueGroup $jobQueueGroup,
IConnectionProvider $dbProvider,
ReadOnlyMode $readOnlyMode,
RepoGroup $repoGroup,
Method __construct
has 15 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
WebRequest $request,
Config $config,
ObjectFactory $objectFactory,
HookContainer $hookContainer,
ReadOnlyMode $readOnlyMode,
Method __construct
has 15 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
Config $config,
LinkRenderer $linkRenderer,
PermissionManager $permManager,
UserNameUtils $userNameUtils,
TempUserCreator $tempUserCreator,
Method __construct
has 15 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
UserIdentity $author,
PageIdentity $page,
DerivedPageDataUpdater $derivedDataUpdater,
IConnectionProvider $dbProvider,
RevisionStore $revisionStore,
Method __construct
has 15 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ServiceOptions $options,
Language $contLang,
AuthManager $authManager,
LinkRenderer $linkRenderer,
NamespaceInfo $nsInfo,
Method __construct
has 15 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
PermissionManager $permissionManager,
RevisionStore $revisionStore,
RevisionRenderer $revisionRenderer,
IContentHandlerFactory $contentHandlerFactory,
NameTableStore $changeTagDefStore,
Method __construct
has 15 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ParsoidOutputStash $parsoidOutputStash,
StatsdDataFactoryInterface $statsDataFactory,
ParserOutputAccess $parserOutputAccess,
PageLookup $pageLookup,
RevisionLookup $revisionLookup,