stripping superfluous whitespace
replacing function body with single-line ternary expression
no need to return $this if preceding method call returns $this
reducing function bodies to ternary returns
transferring example code to Example.php
adding break tags in example output for slight improvement to readability