wikimedia/mediawiki-extensions-Wikibase

View on GitHub
repo/rest-api/src/WbRestApi.php

Summary

Maintainability
D
2 days
Test Coverage

WbRestApi has 86 functions (exceeds 20 allowed). Consider refactoring.
Open

class WbRestApi {

    public static function getGetItem( ContainerInterface $services = null ): GetItem {
        return ( $services ?: MediaWikiServices::getInstance() )
            ->get( 'WbRestApi.GetItem' );
Severity: Major
Found in repo/rest-api/src/WbRestApi.php - About 1 day to fix

    File WbRestApi.php has 434 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php declare( strict_types=1 );
    
    namespace Wikibase\Repo\RestApi;
    
    use MediaWiki\MediaWikiServices;
    Severity: Minor
    Found in repo/rest-api/src/WbRestApi.php - About 6 hrs to fix

      There are no issues that match your filters.

      Category
      Status