public function setIndentSpaces($indent_spaces) { $this->indent_spaces = max(1, (int) $indent_spaces); return $this; }