public function setIndentStyle($style) { $style = strtolower($style); switch ($style) { case 'space': case 'tab': $this->indentStyle = $style; break; } return $this; }