wikimedia/mediawiki-extensions-Wikibase

View on GitHub
repo/rest-api/src/Infrastructure/ValidatingRequestDeserializer.php

Summary

Maintainability
A
1 hr
Test Coverage

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

    public function validateAndDeserialize( UseCaseRequest $request ): DeserializedRequestAdapter {
        $requestObjectId = spl_object_id( $request );
        if ( array_key_exists( $requestObjectId, $this->validRequestResults ) ) {
            return $this->validRequestResults[$requestObjectId];
        }
Severity: Minor
Found in repo/rest-api/src/Infrastructure/ValidatingRequestDeserializer.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status