wikimedia/mediawiki-extensions-Wikibase

View on GitHub
repo/rest-api/src/Application/UseCases/PatchSitelinks/PatchSitelinks.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method execute has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function execute( PatchSitelinksRequest $request ): PatchSitelinksResponse {
        $deserializedRequest = $this->useCaseValidator->validateAndDeserialize( $request );
        $itemId = $deserializedRequest->getItemId();

        $this->assertItemExists->execute( $itemId );

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

            PatchSitelinksValidator $useCaseValidator,
            AssertItemExists $assertItemExists,
            AssertUserIsAuthorized $assertUserIsAuthorized,
            SitelinksRetriever $SitelinksRetriever,
            SitelinksSerializer $sitelinksSerializer,

      There are no issues that match your filters.

      Category
      Status