wikimedia/mediawiki-extensions-Wikibase

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

Summary

Maintainability
A
2 hrs
Test Coverage

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

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

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

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

            PropertyLabelsRetriever $labelsRetriever,
            LabelsSerializer $labelsSerializer,
            PatchJson $patcher,
            PropertyWriteModelRetriever $propertyRetriever,
            PropertyUpdater $propertyUpdater,

      There are no issues that match your filters.

      Category
      Status