wikimedia/mediawiki-extensions-Wikibase

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

Summary

Maintainability
A
1 hr
Test Coverage

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

    public function validateAndDeserialize( ItemLabelEditRequest $request ): Term {
        $item = $this->itemRetriever->getItemWriteModel( new ItemId( $request->getItemId() ) );
        $language = $request->getLanguageCode();
        $label = $request->getLabel();

    There are no issues that match your filters.

    Category
    Status