@param string $blocklistContent

@return string
431766
private static function concatenateBlocklist($blocklistContent)
    {
        return self::SEPERATOR . str_replace(PHP_EOL, self::SEPERATOR, strtolower($blocklistContent)) . self::SEPERATOR;
    }
351638
public function contents(): NodeList {
        $results = $this->collection()->reduce(function($carry, $node) {
            if ($node->isRemoved()) {
                return $carry;
            }

            return $carry->merge(
                $node->newNodeList($node->childNodes)
            );
        }, $this->newNodeList());

        return $results;
    }
916505
private function getDeserializedContent($jsonContent)
    {
        $serializer = $this->getSerializer();

        $data = trim($jsonContent);
        if (substr($data, 0, 1) === '[') { // Check if the current content is an array
            $deserializationType = 'array<'.SerializableInterface::class.'>';
            $array = $serializer->deserialize($data, $deserializationType, 'json');
            $content = new SerializableArray($array);
        } else {
            $content = $serializer->deserialize($data, SerializableInterface::class, 'json');
        }

        return $content;
    }
1176977
public function getContentIdByBlockId($id)
    {
        $dbHandler = $this->getConnection();
        $query = $dbHandler->createSelectQuery();
        $query
            ->select($dbHandler->quoteColumn('contentobject_id'))
            ->from($dbHandler->quoteTable('ezcontentobject_tree'))
            ->innerJoin(
                $dbHandler->quoteTable('ezm_block'),
                $query->expr->eq(
                    $dbHandler->quoteColumn('node_id', 'ezm_block'),
                    $dbHandler->quoteColumn('node_id', 'ezcontentobject_tree')
                )
            )
            ->where(
                $query->expr->eq(
                    $dbHandler->quoteColumn('id', 'ezm_block'),
                    $query->bindValue($id, null, PDO::PARAM_STR)
                )
            );

        $stmt = $query->prepare();
        $stmt->execute();

        $contentId = $stmt->fetchColumn();

        if ($contentId === false) {
            throw new NotFoundException('Block', $id);
        }

        return $contentId;
    }
441035
protected function _getContentList()
    {
        if (!$this->_oContentList) {
            $this->_oContentList = oxNew(\OxidEsales\Eshop\Application\Model\ContentList::class);
        }

        return $this->_oContentList;
    }
1214570
public function getContentIdByBlockId($id)
    {
        $query = $this->connection->createQueryBuilder();
        $query
            ->select($this->connection->quoteIdentifier('contentobject_id'))
            ->from($this->connection->quoteIdentifier('ezcontentobject_tree'), 't')
            ->innerJoin(
                't',
                $this->connection->quoteIdentifier(self::EZM_BLOCK_TABLE),
                'b',
                $query->expr()->eq(
                    $this->connection->quoteIdentifier('b.node_id'),
                    $this->connection->quoteIdentifier('t.node_id')
                )
            )
            ->where(
                $query->expr()->eq($this->connection->quoteIdentifier('b.id'), ':id')
            )
            ->setParameter(':id', $id, PDO::PARAM_STR)
        ;

        $statement = $query->execute();

        $contentId = $statement->fetchColumn();
        if ($contentId === false) {
            throw new NotFoundException('Block', $id);
        }

        return $contentId;
    }
439876
function toString( $contentObjectAttribute )
    {
        $matrix = $contentObjectAttribute->attribute( 'content' );
        $matrixArray = array();
        $rows = $matrix->attribute( 'rows' );

        foreach( $rows['sequential'] as $row )
        {
            $matrixArray[] = eZStringUtils::implodeStr( $row['columns'], '|' );
        }

        return eZStringUtils::implodeStr( $matrixArray, '&' );

    }
945603
public function getInheritedContensetZoneParams(ContentSet $contentSet)
    {
        $zone = null;

        if (
            null === $this->getLayout()
            || null === $this->getParent()
            || false === is_array($this->getLayout()->getZones())
        ) {
            return $zone;
        }

        $layoutZones = $this->getLayout()->getZones();
        $count = $this->getParent()->getContentSet()->count();
        for ($i = 0; $i < $count; $i++) {
            $parentContentset = $this->getParent()->getContentSet()->item($i);

            if ($contentSet->getUid() === $parentContentset->getUid()) {
                $zone = $layoutZones[$i];
            }
        }

        return $zone;
    }
804179
private function prepareFileContent($fileContent)
    {
        // Remove 1 line comments
        $fileContent = preg_replace("#(.*)//(.*)#", " ", $fileContent);

        // Remove multi-line comments
        $fileContent = preg_replace("#/\*(.*)\*?/#", "", $fileContent);

        // Remove all new line characters
        $fileContent = preg_replace("/\n*/", "", $fileContent);

        // Add 2 new line characters after <?php
        $fileContent = str_replace("<?php", "<?php\n\n", $fileContent);

        // Add 1 new line characters after ;
        $fileContent = str_replace(";", ";\n", $fileContent);

        // Add 1 new line characters after {
        $fileContent = str_replace("{ ", "{\n", $fileContent);

        // Add 1 new line character after });
        $fileContent = str_replace("});", "});\n", $fileContent);

        return $fileContent;
    }
239975
protected function sanitizeContent($content) {
    $regex = '/^\n' . preg_quote($this->blockStart, '/') . ".*?" . preg_quote($this->blockEnd, '/') . '\n/sm';
    return preg_replace($regex, '', $content);
  }
388216
def get_contents_dynamic(self, block_alias, context):
        """"""
        dynamic_block = get_dynamic_blocks().get(block_alias, [])
        if not dynamic_block:
            return ''

        dynamic_block = choice(dynamic_block)
        return dynamic_block(block_alias=block_alias, block_context=context)
1371285
protected function parseBlockCommentSummary(array &$blockCommentLines)
    {
        $summary = '';
        foreach ($blockCommentLines as $index => $blockCommentLine) {
            if ('' === trim($blockCommentLine)) {
                break;
            }

            if ('' !== $summary) {
                $summary .= ' ';
            }
            $summary .= ltrim($blockCommentLine);

            unset($blockCommentLines[$index]);
        }

        if ('' === $summary) {
            $summary = null;
        } else {
            $summary = trim($summary);
        }

        return $summary;
    }
1105483
protected function extractTemplate($fileContent, MessageCatalogue $catalogue)
    {
        $translateParameters = [];

        $translateFound = preg_match_all(
            '/\\{\\{\\s*translate\\s(.*)\\s*\\}\\}/',
            $fileContent,
            $translateParameters,
            PREG_SET_ORDER
        );

        $messages = [];
        if ($translateFound) {
            foreach ($translateParameters as $translateParameter) {
                $message = $this->extractParameters($translateParameter[1], $catalogue);
                if ($message !== null) {
                    $messages[] = $message;
                }
            }
        }

        return $messages;
    }
538721
public Content getMemberTree(Content memberTree, boolean isLastContent) {
        if (isLastContent)
            return HtmlTree.UL(HtmlStyle.blockListLast, memberTree);
        else
            return HtmlTree.UL(HtmlStyle.blockList, memberTree);
    }
1104755
private static function getTagContent($arguments, bool $hasContent)
    {
        $content = '';
        if (\is_array($arguments) && isset($arguments[0]) && $hasContent === true) {
            $content = $arguments[0];
        }
        return $content;
    }
129679
protected function isBlock($componentContent = NULL) {
    return $componentContent instanceof \Psc\HTML\Tag &&
      $componentContent->getTag() === 'div' ||
      $componentContent->getTag() === 'fieldset'
    ;
  }
61335
public function render(AbstractBlock $block, ElementRendererInterface $htmlRenderer, $inTightList = false)
    {
        if (!($block instanceof IndentedCode)) {
            throw new \InvalidArgumentException('Incompatible block type: ' . get_class($block));
        }

        return $this->getHTMLElement($block->getStringContent(), "");
    }