repo/includes/Diff/EntityDiffVisualizerFactory.php
Method newEntityDiffVisualizer
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function newEntityDiffVisualizer( ?string $type = null, ?IContextSource $context = null ): EntityDiffVisualizer {
if ( $context === null ) {
$context = RequestContext::getMain();
}
$langCode = $context->getLanguage()->getCode();
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
array $entityDiffVisualizerInstantiators,
ClaimDiffer $claimDiffer,
SiteLookup $siteLookup,
EntityIdFormatterFactory $entityIdFormatterFactory,
OutputFormatSnakFormatterFactory $snakFormatterFactory