wikimedia/mediawiki-extensions-Wikibase

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

Summary

Maintainability
A
1 hr
Test Coverage

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

    public function validateAndDeserialize( ItemDescriptionEditRequest $request ): Term {
        $item = $this->itemRetriever->getItemWriteModel( new ItemId( $request->getItemId() ) );
        $language = $request->getLanguageCode();
        $description = $request->getDescription();

    There are no issues that match your filters.

    Category
    Status