wikimedia/mediawiki-core

View on GitHub
includes/block/UserBlockCommandFactory.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method __construct has 11 arguments (exceeds 4 allowed). Consider refactoring.
Open

        ServiceOptions $options,
        HookContainer $hookContainer,
        BlockPermissionCheckerFactory $blockPermissionCheckerFactory,
        BlockUtils $blockUtils,
        DatabaseBlockStore $blockStore,
Severity: Major
Found in includes/block/UserBlockCommandFactory.php - About 1 hr to fix

    Method newBlockUser has 7 arguments (exceeds 4 allowed). Consider refactoring.
    Open

            $target,
            Authority $performer,
            string $expiry,
            string $reason = '',
            array $blockOptions = [],
    Severity: Major
    Found in includes/block/UserBlockCommandFactory.php - About 50 mins to fix

      There are no issues that match your filters.

      Category
      Status