[TASK] Enhance code according to Sonar rules

https://metrics.typo3.org reports a few problems:

- LineLengthMaxExceeded

Change-Id: Ifb311c1798111cf3aff297b650162a93ad9f5b5b
Reviewed-on: https://review.typo3.org/26659
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers