Showing 1,432 of 2,096 total issues
Method factory
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
AnonymousEditWarningBuilder $anonymousEditWarningBuilder,
DataTypeFactory $dataTypeFactory,
MediaWikiEditEntityFactory $editEntityFactory,
EntityNamespaceLookup $entityNamespaceLookup,
EntityTitleLookup $entityTitleLookup,
Method factory
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ApiMain $mainModule,
string $moduleName,
ApiHelperFactory $apiHelperFactory,
DeserializerFactory $deserializerFactory,
ChangeOpFactoryProvider $changeOpFactoryProvider,
Method factory
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ApiMain $mainModule,
string $moduleName,
IBufferingStatsdDataFactory $stats,
ApiHelperFactory $apiHelperFactory,
ChangeOpFactoryProvider $changeOpFactoryProvider,
Method __construct
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ApiMain $mainModule,
string $moduleName,
OutputFormatValueFormatterFactory $valueFormatterFactory,
OutputFormatSnakFormatterFactory $snakFormatterFactory,
DataTypeFactory $dataTypeFactory,
Method __construct
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
bool $isWriteMode,
$needsToken,
RevisionLookup $revisionLookup,
TitleFactory $titleFactory,
EntityIdParser $idParser,
Method factory
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ApiMain $mainModule,
string $moduleName,
IBufferingStatsdDataFactory $stats,
ApiHelperFactory $apiHelperFactory,
DataTypeFactory $dataTypeFactory,
Method __construct
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
EntityConstraintProvider $constraintProvider,
GuidGenerator $guidGenerator,
StatementGuidValidator $guidValidator,
StatementGuidParser $guidParser,
SnakValidator $snakValidator,
Method __construct
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
TemplateFactory $templateFactory,
UserIdentity $user,
EntityDocument $entity,
array $termsLanguages,
LanguageDirectionalityLookup $languageDirectionalityLookup,
Method __construct
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
EntityTermStoreWriter $entityTermStoreWriter,
EntityContentDataCodec $contentCodec,
EntityConstraintProvider $constraintProvider,
ValidatorErrorLocalizer $errorLocalizer,
EntityIdParser $entityIdParser,
Function _createListView
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_createListView: function () {
var self = this,
$listviewParent = null;
// Re-create listview widget if it exists already
Function _fillMenu
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_fillMenu: function () {
var self = this,
deferred = $.Deferred(),
// eslint-disable-next-line no-jquery/no-map-util
badgeIds = $.map( this.options.badges, function ( cssClasses, itemId ) {
Method formatResult
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function formatResult( IResultWrapper $res, int $limit, array $prop ): void {
$currentPageId = null;
$entry = [];
$count = 0;
Function Store
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var Store = function Store (options) {
var this$1$1 = this;
if ( options === void 0 ) options = {};
{
Method execute
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute() {
$referenceJson = $this->getParameter( 'reference' );
$referenceJsonStatus = FormatJson::parse( $referenceJson, FormatJson::FORCE_ASSOC );
if ( !$referenceJsonStatus->isGood() ) {
Function exports
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = async function ( client, repoOwner, repoName, filePath ) {
const history = [];
let hasNextPage = true;
let endCursor = null;
Method getAllowedParams
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function getAllowedParams(): array {
return array_merge(
[
'entity' => [
ParamValidator::PARAM_TYPE => 'string',
Method addEntityRevision
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function addEntityRevision(
$sourceEntityIdSerialization,
EntityRevision $entityRevision,
$props = 'all',
array $filterSiteIds = null,
Method execute
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute( $subPage ) {
parent::execute( $subPage );
// Setup
$request = $this->getRequest();
Method execute
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute(): void {
$params = $this->extractRequestParams();
$this->validateParameters( $params );
$entityId = $this->guidParser->parse( $params['statement'] )->getEntityId();
Method getValidator
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getValidator( $scheme ) {
switch ( $scheme ) {
// Schemes with "://", copied from $wgUrlProtocols in MediaWiki's DefaultSettings.php
case 'ftp':
case 'ftps':