repo/rest-api/src/Application/UseCases/PatchSitelinks/PatchSitelinks.php
Method execute
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute( PatchSitelinksRequest $request ): PatchSitelinksResponse {
$deserializedRequest = $this->useCaseValidator->validateAndDeserialize( $request );
$itemId = $deserializedRequest->getItemId();
$this->assertItemExists->execute( $itemId );
Method __construct
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
PatchSitelinksValidator $useCaseValidator,
AssertItemExists $assertItemExists,
AssertUserIsAuthorized $assertUserIsAuthorized,
SitelinksRetriever $SitelinksRetriever,
SitelinksSerializer $sitelinksSerializer,