wikimedia/mediawiki-extensions-Wikibase

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

Summary

Maintainability
A
1 hr
Test Coverage

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

    public function validateAndDeserialize( SitelinkEditRequest $request ): SiteLink {
        $validationError = $this->validator->validate( $request->getItemId(), $request->getSiteId(), $request->getSitelink(), '/sitelink' );

        if ( $validationError ) {
            $context = $validationError->getContext();

    There are no issues that match your filters.

    Category
    Status