repo/rest-api/src/Application/UseCaseRequestValidation/SitelinkEditRequestValidatingDeserializer.php
Method validateAndDeserialize
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function validateAndDeserialize( SitelinkEditRequest $request ): SiteLink {
$validationError = $this->validator->validate( $request->getItemId(), $request->getSiteId(), $request->getSitelink(), '/sitelink' );
if ( $validationError ) {
$context = $validationError->getContext();