private function Parser::getCurrentLineIndentation in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/yaml/Parser.php \Symfony\Component\Yaml\Parser::getCurrentLineIndentation()
Returns the current line indentation.
Return value
int The current line indentation
4 calls to Parser::getCurrentLineIndentation()
- 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 - Returns true if the next line starts unindented collection.
- Parser::parse in vendor/
symfony/ yaml/ Parser.php - Parses a YAML string to a PHP value.
File
- vendor/
symfony/ yaml/ Parser.php, line 324
Class
- Parser
- Parser parses YAML strings to convert them to PHP arrays.
Namespace
Symfony\Component\YamlCode
private function getCurrentLineIndentation() {
return strlen($this->currentLine) - strlen(ltrim($this->currentLine, ' '));
}