src/Blocks/BlockContinue.php
public function validateLineType($lineNumber)
    {
        if ($lineNumber < 1) {
            return false;
        }

        $lineContent = $this->factory
            ->getDataObject()
            ->getLine($lineNumber)
        ;

        $previousLineObject = $this->factory
            ->getDataObject()
            ->getLine($lineNumber - 1)
        ;

        if ($this->lineIsObjectOf($previousLineObject, BlockTypes::BLOCK_CONTINUE)) {
            return true;
        }

        if ($this->lineIsObjectOf($previousLineObject, BlockTypes::BLOCK_EMPTY)) {
            return false;
        }

        return (bool) preg_match('/^([\s]{1,}|[\t]+)\S/', $lineContent);
    }
public function validateLineType($lineNumber)
    {
        if ($lineNumber < 1) {
            return false;
        }

        $lineContent = $this->factory
            ->getDataObject()
            ->getLine($lineNumber)
        ;

        $previousLineObject = $this->factory
            ->getDataObject()
            ->getLine($lineNumber - 1)
        ;

        if ($this->lineIsObjectOf($previousLineObject, BlockTypes::BLOCK_CONTINUE)) {
            return true;
        }

        if ($this->lineIsObjectOf($previousLineObject, BlockTypes::BLOCK_EMPTY)) {
            return false;
        }

        return (bool) preg_match('/^([\s]{1,}|[\t]+)\S/', $lineContent);
    }
@param int $lineNumber

@return bool