public function Dumper::setIndentation in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/symfony/yaml/Dumper.php \Symfony\Component\Yaml\Dumper::setIndentation()
Sets the indentation.
Parameters
int $num The amount of spaces to use for indentation of nested nodes.:
File
- vendor/
symfony/ yaml/ Symfony/ Component/ Yaml/ Dumper.php, line 33
Class
- Dumper
- Dumper dumps PHP variables to YAML strings.
Namespace
Symfony\Component\YamlCode
public function setIndentation($num) {
if ($num < 1) {
throw new \InvalidArgumentException('The indentation must be greater than zero.');
}
$this->indentation = (int) $num;
}