wikimedia/mediawiki-extensions-DonationInterface

View on GitHub
gateway_common/ConfigurationReader.php

Summary

Maintainability
A
1 hr
Test Coverage

Method createForGateway has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static function createForGateway( $gateway, $variant, Config $mwConfig ) {
        $extensionBaseDir = $mwConfig->get( 'ExtensionDirectory' ) . DIRECTORY_SEPARATOR
            . 'DonationInterface';
        /** The following conditional can be deleted when we get rid of WmfFramework */
        if ( !is_dir( $extensionBaseDir ) ) {
Severity: Minor
Found in gateway_common/ConfigurationReader.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status