Symfony\Component\Yaml\Parser::isCurrentLineComment PHP Method

isCurrentLineComment() private method

Returns true if the current line is a comment line.
private isCurrentLineComment ( ) : boolean
return boolean Returns true if the current line is a comment line, false otherwise
    private function isCurrentLineComment()
    {
        //checking explicitly the first char of the trim is faster than loops or strpos
        $ltrimmedLine = ltrim($this->currentLine, ' ');
        return '' !== $ltrimmedLine && $ltrimmedLine[0] === '#';
    }