wikimedia/mediawiki-extensions-Wikibase

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

Summary

Maintainability
A
2 hrs
Test Coverage

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

    public function execute( PatchPropertyRequest $request ): PatchPropertyResponse {
        $deserializedRequest = $this->validator->validateAndDeserialize( $request );
        $propertyId = $deserializedRequest->getPropertyId();
        $providedMetadata = $deserializedRequest->getEditMetadata();

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

            PatchPropertyValidator $validator,
            AssertPropertyExists $assertPropertyExists,
            AssertUserIsAuthorized $assertUserIsAuthorized,
            PropertyRetriever $propertyRetriever,
            PropertySerializer $propertySerializer,

      There are no issues that match your filters.

      Category
      Status