wikimedia/mediawiki-extensions-Wikibase

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

Summary

Maintainability
A
2 hrs
Test Coverage

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

    public function execute( PatchPropertyDescriptionsRequest $request ): PatchPropertyDescriptionsResponse {
        $deserializedRequest = $this->useCaseValidator->validateAndDeserialize( $request );
        $propertyId = $deserializedRequest->getPropertyId();

        $this->assertPropertyExists->execute( $propertyId );

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

            PatchPropertyDescriptionsValidator $useCaseValidator,
            AssertPropertyExists $assertPropertyExists,
            AssertUserIsAuthorized $assertUserIsAuthorized,
            PropertyDescriptionsRetriever $descriptionsRetriever,
            DescriptionsSerializer $descriptionsSerializer,

      There are no issues that match your filters.

      Category
      Status