function Parser::getCurrentLineIndentation
5 calls to Parser::getCurrentLineIndentation()
- Parser::doParse in vendor/
symfony/ yaml/ Parser.php - Parser::getNextEmbedBlock in vendor/
symfony/ yaml/ Parser.php - Returns the next embed block of YAML.
- Parser::isNextLineIndented in vendor/
symfony/ yaml/ Parser.php - Returns true if the next line is indented.
- Parser::isNextLineUnIndentedCollection in vendor/
symfony/ yaml/ Parser.php - Parser::parseValue in vendor/
symfony/ yaml/ Parser.php - Parses a YAML value.
File
-
vendor/
symfony/ yaml/ Parser.php, line 554
Class
- Parser
- Parser parses YAML strings to convert them to PHP arrays.
Namespace
Symfony\Component\YamlCode
private function getCurrentLineIndentation() : int {
if (' ' !== ($this->currentLine[0] ?? '')) {
return 0;
}
return \strlen($this->currentLine) - \strlen(ltrim($this->currentLine, ' '));
}