Showing 11,545 of 11,545 total issues
Method extractResultInfo
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function extractResultInfo( $isFirst, $limit, IResultWrapper $res ) {
$numRows = $res->numRows();
$firstIndex = [];
$lastIndex = [];
Method makeToolbox
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function makeToolbox( $navUrls, $feedUrls ) {
$toolbox = [];
if ( $navUrls['whatlinkshere'] ?? null ) {
$toolbox['whatlinkshere'] = $navUrls['whatlinkshere'];
$toolbox['whatlinkshere']['id'] = 't-whatlinkshere';
Method getCopyrightHTML
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getCopyrightHTML(): string {
$out = $this->skinContext->getOutput();
$title = $out->getTitle();
$isRevisionCurrent = $out->isRevisionCurrent();
$config = $this->config;
Method initializeArticle
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function initializeArticle() {
$context = $this->getContext();
$title = $context->getTitle();
$services = $this->getServiceContainer();
Method __construct
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __construct(
$code = null,
NamespaceInfo $namespaceInfo = null,
LocalisationCache $localisationCache = null,
LanguageNameUtils $langNameUtils = null,
Method includeRcFiltersApp
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function includeRcFiltersApp() {
$out = $this->getOutput();
if ( $this->isStructuredFilterUiEnabled() && !$this->including() ) {
$jsData = $this->getStructuredFilterJsData();
$messages = [];
Method getParamInfo
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getParamInfo( $name, array $settings, array $options ) {
$info = parent::getParamInfo( $name, $settings, $options );
/** @var ApiBase $module */
$module = $options['module'];
Method initFromQueryResult
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function initFromQueryResult( $res, &$remaining = null, $processTitles = null ) {
if ( $remaining !== null && $processTitles === null ) {
ApiBase::dieDebug( __METHOD__, 'Missing $processTitles parameter when $remaining is provided' );
}
Method getAllowedParams
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getAllowedParams() {
return [
'prop' => [
ParamValidator::PARAM_DEFAULT => 'general',
ParamValidator::PARAM_ISMULTI => true,
Method execute
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute() {
$params = $this->extractRequestParams();
$modules = [];
foreach ( $params['modules'] as $path ) {
Method createDesktopPreferencesForm
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function createDesktopPreferencesForm() {
$tabPanels = [];
foreach ( $this->mFieldTree as $key => $val ) {
if ( !is_array( $val ) ) {
wfDebug( __METHOD__ . " encountered a field not attached to a section: '$key'" );
Method doExport
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function doExport( $page, $history, $list_authors, $exportall ) {
// If we are grabbing everything, enable full history and ignore the rest
if ( $exportall ) {
$history = WikiExporter::FULL;
} else {
Method getQueryInfo
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getQueryInfo() {
$dbr = $this->getDatabaseProvider()->getReplicaDatabase();
$field = 'el_to_domain_index';
$extraFields = [
Method contentTypeFromPath
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function contentTypeFromPath( $filename, $safe = true ) {
// NOTE: TrivialMimeDetection is forced by ThumbnailEntryPoint. When this
// code is moved to a non-static method in a service object, we can no
// longer rely on that.
$trivialMimeDetection = MediaWikiServices::getInstance()->getMainConfig()
Method render
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function render( $term, $resultSets ) {
if ( !is_array( $resultSets ) ) {
$resultSets = [ $resultSets ];
}
Method __construct
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __construct() {
parent::__construct();
$gz = in_array( 'compress.zlib', stream_get_wrappers() )
? 'ok'
: '(disabled; requires PHP zlib module)';
Method execute
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute() {
$typeFilter = $this->getOption( 'type', '' );
$stateFilter = $this->getOption( 'status', '' );
$stateLimit = (float)$this->getOption( 'limit', INF );
Method doWork
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function doWork( $mode ) {
$this->output( "Finding up to {$this->getBatchSize()} drifted rows " .
"greater than cat_id {$this->minimumId}...\n" );
$dbr = $this->getDB( DB_REPLICA, 'vslow' );
Method execute
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute() {
$dbw = $this->getPrimaryDB();
$services = $this->getServiceContainer();
$defStore = $services->getChangeTagDefStore();
Method execute
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute() {
$this->commit = $this->hasOption( 'commit' );
$dbr = $this->getReplicaDB();
$dbw = $this->getPrimaryDB();
$lastId = 0;