[BUGFIX] Improve code quality according to metrics.typo3.org

Change-Id: Ia9e4a5aa00ab22f47eb31d6f21feceed859d39c7
Reviewed-on: https://review.typo3.org/25522
Reviewed-by: Nicole Cordes
Tested-by: Nicole Cordes