Showing 11,545 of 11,545 total issues
Method getStartBody
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function getStartBody() {
$this->oldIdChecked = 0;
$s = '';
// Button container stored in $this->buttons for re-use in getEndBody()
$this->buttons = '';
Method getInputOOUI
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getInputOOUI( $value ) {
if ( !$this->isPersistent() ) {
$value = '';
}
Method getMsgFromNamespace
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getMsgFromNamespace( $title, $code ) {
// Load all MediaWiki page definitions into cache. Note that individual keys
// already loaded into the cache during this request remain in the cache, which
// includes the value of hook-defined messages.
$this->load( $code );
Method getNamespaceAliases
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getNamespaceAliases() {
if ( $this->namespaceAliases === null ) {
$aliases = $this->localisationCache->getItem( $this->mCode, 'namespaceAliases' );
if ( !$aliases ) {
$aliases = [];
Method executePath
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function executePath( $path, IContextSource $context, $including = false,
LinkRenderer $linkRenderer = null
) {
if ( $path instanceof PageReference ) {
$path = $path->getDBkey();
Method getGoodLinkRowInternal
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getGoodLinkRowInternal(
TitleValue $link,
callable $fetchCallback = null,
int $queryFlags = IDBAccessObject::READ_NORMAL
): array {
Method execute
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute() {
$params = $this->extractRequestParams();
$helper = new ApiAuthManagerHelper( $this, $this->authManager );
$ret = [
'canauthenticatenow' => $this->authManager->canAuthenticateNow(),
Method describeIndex
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function describeIndex( $idx ) {
// first fetch the key (which is a list of columns ords) and
// the table the index applies to (an oid)
$q = <<<END
SELECT indkey, indrelid FROM pg_namespace, pg_class, pg_index
Method getParsedContent
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getParsedContent(
WikiPage $page, $popts, $suppressCache, $pageId, $rev, $getContent
) {
$revId = $rev ? $rev->getId() : null;
$isDeleted = $rev && $rev->isDeleted( RevisionRecord::DELETED_TEXT );
Method addPersonalizationOptions
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function addPersonalizationOptions() {
$parent = $this->parent;
$this->addHTML(
$this->getFieldsetStart( 'config-personalization-settings' ) .
Html::rawElement( 'div', [
Method getIndexErrorOutput
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getIndexErrorOutput( $introText, $longTitle, $longHtml ) {
$encLogo =
htmlspecialchars( str_replace( '//', '/', $this->scriptPath . '/' ) .
'resources/assets/mediawiki.png' );
Method deleteObjectsExpiringBefore
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function deleteObjectsExpiringBefore(
$timestamp,
callable $progress = null,
$limit = INF,
string $tag = null
Method setTopText
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function setTopText( FormOptions $opts ) {
$nondefaults = $opts->getChangedValues();
$form = '';
$user = $this->getUser();
Method setTopText
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function setTopText( FormOptions $opts ) {
$message = $this->msg( 'recentchangestext' )->inContentLanguage();
if ( !$message->isDisabled() ) {
$contLang = $this->getContentLanguage();
// Parse the message in this weird ugly way to preserve the ability to include interlanguage
Method listAuthors
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function listAuthors( $authors, $extName, $extDir ): string {
$hasOthers = false;
$linkRenderer = $this->getLinkRenderer();
$list = [];
Method createMobilePreferencesForm
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function createMobilePreferencesForm() {
$sectionButtons = [];
$sectionContents = [];
$iconNames = $this->getIconNames();
Method interwikiMap
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function interwikiMap(): array {
// Unfortunate that this mostly duplicates \ApiQuerySiteinfo::appendInterwikiMap()
if ( $this->interwikiMap !== null ) {
return $this->interwikiMap;
}
Method limitTitle
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function limitTitle( $page, $pattern ) {
if ( !$page instanceof PageReference ) {
// NOTE: For some types of logs, the title may be something strange, like "User:#12345"!
$page = Title::newFromText( $page );
if ( !$page ) {
Method purgeExpired
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function purgeExpired() {
if ( $this->readOnlyMode->isReadOnly( $this->wikiId ) ) {
return false;
}
Method disableStorage
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function disableStorage() {
if ( $this->storageDisabled ) {
return;
}