Showing 1,432 of 2,096 total issues
Method __construct
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
RdfVocabulary $vocabulary,
EntityRdfBuilderFactory $entityRdfBuilderFactory,
int $flavor,
RdfWriter $writer,
DedupeBag $dedupeBag,
Method __construct
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
SiteLinkBadgeChangeOpSerializationValidator $badgeChangeOpSerializationValidator,
SiteLinkChangeOpFactory $siteLinkChangeOpFactory,
SiteLinkPageNormalizer $siteLinkPageNormalizer,
SiteLinkTargetProvider $siteLinkTargetProvider,
EntityIdParser $entityIdParser,
Method __construct
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
GuidGenerator $guidGenerator,
StatementGuidValidator $guidValidator,
StatementGuidParser $guidParser,
SnakValidator $snakValidator,
SnakValidator $referenceSnakValidator,
Method __construct
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
EntityTitleStoreLookup $entityTitleStoreLookup,
PropertyDataTypeLookup $propertyLookup,
EntityDataFormatProvider $entityDataFormatProvider,
SerializerFactory $serializerFactory,
Serializer $entitySerializer,
Method __construct
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
DispatchingEntityViewFactory $entityViewFactory,
DispatchingEntityMetaTagsCreatorFactory $entityMetaTagsCreatorFactory,
ParserOutputJsConfigBuilder $configBuilder,
TermLanguageFallbackChain $termLanguageFallbackChain,
EntityDataFormatProvider $entityDataFormatProvider,
Method __construct
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
HtmlTermRenderer $htmlTermRenderer,
LabelDescriptionLookup $labelDescriptionLookup,
TemplateFactory $templateFactory,
EditSectionGenerator $sectionEditLinkGenerator,
LocalizedTextProvider $textProvider,
Method __construct
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
OutputPage $outputPage,
TermboxRequestInspector $requestInspector,
TermboxRenderer $termboxRenderer,
OutputPageEntityIdReader $entityIdReader,
RepoSpecialPageLinker $specialPageLinker,
Method __construct
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
IContextSource $context,
MediaWikiEditEntityFactory $editEntityFactory,
LoggerInterface $logger,
EditSummaryFormatter $summaryFormatter,
PermissionManager $permissionManager,
Method __construct
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
$modelId,
$unused,
EntityContentDataCodec $contentCodec,
EntityConstraintProvider $constraintProvider,
ValidatorErrorLocalizer $errorLocalizer,
Method setServices
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
SqlEntityIdPagerFactory $sqlEntityIdPagerFactory,
array $existingEntityTypes,
EntityPrefetcher $entityPrefetcher,
PropertyDataTypeLookup $propertyDataTypeLookup,
EntityRevisionLookup $entityRevisionLookup,
Method __construct
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
PatchStatementValidator $useCaseValidator,
PatchedStatementValidator $patchedStatementValidator,
PatchJson $jsonPatcher,
StatementSerializer $statementSerializer,
AssertStatementSubjectExists $assertStatementSubjectExists,
Method __construct
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
TemplateFactory $templateFactory,
CacheableEntityTermsView $entityTermsView,
LanguageDirectionalityLookup $languageDirectionalityLookup,
StatementSectionsView $statementSectionsView,
$languageCode,
Function b622
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
/***/ (function(module, exports, __webpack_require__) {
var global = __webpack_require__("da84");
var shared = __webpack_require__("5692");
var has = __webpack_require__("5135");
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function 94ca
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
/***/ (function(module, exports, __webpack_require__) {
var fails = __webpack_require__("d039");
var replacement = /#|\.prototype\./;
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function d2bb
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
/***/ (function(module, exports, __webpack_require__) {
/* eslint-disable no-proto -- safe */
var anObject = __webpack_require__("825a");
var aPossiblePrototype = __webpack_require__("3bbe");
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function ca84
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
/***/ (function(module, exports, __webpack_require__) {
var has = __webpack_require__("5135");
var toIndexedObject = __webpack_require__("fc6a");
var indexOf = __webpack_require__("4d64").indexOf;
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function getTerm
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
private function getTerm( EntityId $entityId, string $languageCode, string $termType ): ?string {
$resolutionResult = $this->redirectResolvingLatestRevisionLookup->lookupLatestRevisionResolvingRedirect( $entityId );
if ( $resolutionResult === null ) {
return null;
}
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function getChangedAspects
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
public function getChangedAspects( EntityChange $change ) {
$aspects = [];
$diffAspects = $change->getCompactDiff();
if ( $diffAspects->getSiteLinkChanges() !== [] ) {
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function rebuildTermsForBatch
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
private function rebuildTermsForBatch( array $itemIds ) {
foreach ( $itemIds as $itemId ) {
try {
$item = $this->itemLookup->getItemForId( $itemId );
} catch ( UnresolvedEntityRedirectException $entityRedirectException ) {
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function generateOpHtml
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
protected function generateOpHtml( array $path, DiffOp $op ) {
if ( $op->isAtomic() ) {
$localizedPath = $path;
$html = $this->generateDiffHeaderHtml( implode( ' / ', $localizedPath ) );
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"