Update examples to be more like php-fig.

Because most these changes do not affect the way codeigniter functions I decided to move more towards the PSR style with brackets.