Code Duplication    Length = 14-14 lines in 2 locations

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

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