wikimedia/mediawiki-extensions-Wikibase

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

Summary

Maintainability
A
2 hrs
Test Coverage

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

        PatchPropertyAliasesValidator $validator,
        AssertPropertyExists $assertPropertyExists,
        AssertUserIsAuthorized $assertUserIsAuthorized,
        PropertyAliasesRetriever $aliasesRetriever,
        AliasesSerializer $aliasesSerializer,

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

        public function execute( PatchPropertyAliasesRequest $request ): PatchPropertyAliasesResponse {
            $deserializedRequest = $this->validator->validateAndDeserialize( $request );
            $editMetadata = $deserializedRequest->getEditMetadata();
    
            $this->assertPropertyExists->execute( $deserializedRequest->getPropertyId() );

      There are no issues that match your filters.

      Category
      Status