Code Duplication    Length = 14-14 lines in 2 locations

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

@@ 413-426 (lines=14) @@
410
     *
411
     * @return \eZ\Publish\API\Repository\Values\Content\Content the content draft with the updated fields
412
     */
413
    public function updateContent(VersionInfo $versionInfo, ContentUpdateStruct $contentUpdateStruct)
414
    {
415
        $returnValue = $this->service->updateContent($versionInfo, $contentUpdateStruct);
416
        $this->signalDispatcher->emit(
417
            new UpdateContentSignal(
418
                array(
419
                    'contentId' => $versionInfo->getContentInfo()->id,
420
                    'versionNo' => $versionInfo->versionNo,
421
                )
422
            )
423
        );
424
425
        return $returnValue;
426
    }
427
428
    /**
429
     * Publishes a content version.
@@ 438-451 (lines=14) @@
435
     *
436
     * @return \eZ\Publish\API\Repository\Values\Content\Content
437
     */
438
    public function publishVersion(VersionInfo $versionInfo)
439
    {
440
        $returnValue = $this->service->publishVersion($versionInfo);
441
        $this->signalDispatcher->emit(
442
            new PublishVersionSignal(
443
                array(
444
                    'contentId' => $versionInfo->getContentInfo()->id,
445
                    'versionNo' => $versionInfo->versionNo,
446
                )
447
            )
448
        );
449
450
        return $returnValue;
451
    }
452
453
    /**
454
     * Removes the given version.