function Parser::isCurrentLineComment
4 calls to Parser::isCurrentLineComment()
- Parser::getNextEmbedBlock in vendor/
symfony/ yaml/ Parser.php - Returns the next embed block of YAML.
- Parser::isCurrentLineEmpty in vendor/
symfony/ yaml/ Parser.php - Parser::isNextLineIndented in vendor/
symfony/ yaml/ Parser.php - Returns true if the next line is indented.
- Parser::isNextLineUnIndentedCollection in vendor/
symfony/ yaml/ Parser.php
File
-
vendor/
symfony/ yaml/ Parser.php, line 967
Class
- Parser
- Parser parses YAML strings to convert them to PHP arrays.
Namespace
Symfony\Component\YamlCode
private function isCurrentLineComment() : bool {
// checking explicitly the first char of the trim is faster than loops or strpos
$ltrimmedLine = '' !== $this->currentLine && ' ' === $this->currentLine[0] ? ltrim($this->currentLine, ' ') : $this->currentLine;
return '' !== $ltrimmedLine && '#' === $ltrimmedLine[0];
}