[CLEANUP] Fix typos and phpmd notices

Change-Id: I1ba4eb3ef81d49f8f640f51a4c27f7d67401da30
Reviewed-on: http://review.typo3.org/32241
Reviewed-by: Tim Lochmüller <tim@fruit-lab.de>
Tested-by: Tim Lochmüller <tim@fruit-lab.de>