src/Blocks/BlockTable.php
public function validateLineType($lineNumber)
    {
        $dataObject = $this->factory->getDataObject();
        $lineContent = $dataObject->getLine($lineNumber);
        $lineContent = trim($lineContent);

        if (strpos($lineContent, '|') !== false && strpos($lineContent, '---') !== false) {
            return true;
        }

        return false;
    }
public function validateLineType($lineNumber)
    {
        $dataObject = $this->factory->getDataObject();
        $lineContent = $dataObject->getLine($lineNumber);
        $lineContent = trim($lineContent);

        if (strpos($lineContent, '|') !== false && strpos($lineContent, '---') !== false) {
            return true;
        }

        return false;
    }
@param int $lineNumber

@return bool