repo/includes/Api/MergeItems.php
Method getAllowedParams
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected function getAllowedParams(): array {
return array_merge( [
'fromid' => [
ParamValidator::PARAM_TYPE => 'string',
ParamValidator::PARAM_REQUIRED => true,
Method mergeItems
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ItemId $fromId,
ItemId $toId,
array $ignoreConflicts,
?string $summary,
bool $bot,
Method __construct
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ApiMain $mainModule,
string $moduleName,
ItemMergeInteractor $interactor,
ApiErrorReporter $errorReporter,
callable $resultBuilderInstantiator,
Method factory
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ApiMain $mainModule,
string $moduleName,
ApiHelperFactory $apiHelperFactory,
ItemMergeInteractor $interactor,
SettingsArray $settings