applying patch from and for http://forge.typo3.org/issues/49027
applied autoformat to hopefully normalize code
This regards:
- tabs vs spaces (tabs default in typo3 conventions)
- number of indents
- usage of spaces between parameters, parantheses
- still missing: consistent usage of braces in if/else even for 1-line actions