src/Blocks/BlockContentTemplate.php
protected function setContentBlockKeyByContent($lineContent)
    {
        if ($this->contentBlockKey !== null) {
            return $this;
        }

        $key = str_replace(self::BLOCK_MARKUP, '', $lineContent);

        if (empty(trim($key))) {
            throw new CodeTemplateNameNotProvided('No type provided in delimiter');
        }

        $this->contentBlockKey = trim($key);

        return $this;
    }
protected function setContentBlockKeyByContent($lineContent)
    {
        if ($this->contentBlockKey !== null) {
            return $this;
        }

        $key = str_replace(self::BLOCK_MARKUP, '', $lineContent);

        if (empty(trim($key))) {
            throw new CodeTemplateNameNotProvided('No type provided in delimiter');
        }

        $this->contentBlockKey = trim($key);

        return $this;
    }
@param string $lineContent

@throws \Exception

@return $this