public function publishVersion($contentId, $versionNumber)
    {
        if (!$this->isUserContent($contentId)) {
            parent::publishVersion($contentId, $versionNumber);
        }

        return new NoContent();
    }
public function publishVersion($contentId, $versionNumber)
    {
        if (!$this->isUserContent($contentId)) {
            parent::publishVersion($contentId, $versionNumber);
        }

        return new NoContent();
    }
public function publishVersion ( $ contentId , $ versionNumber ) { if ( ! $ this -> isUserContent ( $ contentId ) ) { parent :: publishVersion ( $ contentId , $ versionNumber ) ; } return new NoContent ( ) ; }
If the published content is a user, return directly without publishing.

@param mixed $contentId
@param int $versionNumber

@return \eZ\Publish\Core\REST\Server\Values\NoContent
If the published content is a user return directly without publishing .