League\CommonMark\Block\Element\FencedCode::matchesNextLine PHP Method

matchesNextLine() public method

public matchesNextLine ( Cursor $cursor )
$cursor League\CommonMark\Cursor
    public function matchesNextLine(Cursor $cursor)
    {
        if ($this->length === -1) {
            if ($cursor->isBlank()) {
                $this->lastLineBlank = true;
            }
            return false;
        }
        // Skip optional spaces of fence offset
        $cursor->advanceWhileMatches(' ', $this->offset);
        return true;
    }