Code Duplication    Length = 14-14 lines in 2 locations

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

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