Code Duplication    Length = 14-14 lines in 2 locations

eZ/Publish/Core/SignalSlot/ContentService.php 2 locations

@@ 401-414 (lines=14) @@
398
     *
399
     * @return \eZ\Publish\API\Repository\Values\Content\Content the content draft with the updated fields
400
     */
401
    public function updateContent(VersionInfo $versionInfo, ContentUpdateStruct $contentUpdateStruct)
402
    {
403
        $returnValue = $this->service->updateContent($versionInfo, $contentUpdateStruct);
404
        $this->signalDispatcher->emit(
405
            new UpdateContentSignal(
406
                array(
407
                    'contentId' => $versionInfo->getContentInfo()->id,
408
                    'versionNo' => $versionInfo->versionNo,
409
                )
410
            )
411
        );
412
413
        return $returnValue;
414
    }
415
416
    /**
417
     * Publishes a content version.
@@ 426-439 (lines=14) @@
423
     *
424
     * @return \eZ\Publish\API\Repository\Values\Content\Content
425
     */
426
    public function publishVersion(VersionInfo $versionInfo)
427
    {
428
        $returnValue = $this->service->publishVersion($versionInfo);
429
        $this->signalDispatcher->emit(
430
            new PublishVersionSignal(
431
                array(
432
                    'contentId' => $versionInfo->getContentInfo()->id,
433
                    'versionNo' => $versionInfo->versionNo,
434
                )
435
            )
436
        );
437
438
        return $returnValue;
439
    }
440
441
    /**
442
     * Removes the given version.