wikimedia/mediawiki-extensions-Wikibase

View on GitHub
repo/rest-api/src/Application/UseCaseRequestValidation/PropertyDescriptionEditRequestValidatingDeserializer.php

Summary

Maintainability
A
1 hr
Test Coverage

Method validateAndDeserialize has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function validateAndDeserialize( PropertyDescriptionEditRequest $request ): Term {
        $property = $this->propertyRetriever->getPropertyWriteModel( new NumericPropertyId( $request->getPropertyId() ) );
        $language = $request->getLanguageCode();
        $description = $request->getDescription();

    There are no issues that match your filters.

    Category
    Status