[TASK] Fix several code style issues mentioned in scrutinizer

Change-Id: I44d527ae114306cbaf7984b00831f1a2af74dcb3
Reviewed-on: https://review.typo3.org/31395
Reviewed-by: Alexander Schnitzler
Tested-by: Alexander Schnitzler
[TASK] Ignore cm1/index.php in scrutinizer php analyzer

This has to be done as scrutinizer crashes when analyzing
the file cm1/index.php.

Releases: 2.0.0
Change-Id: Ie96a98715ce15798ea7f1148ab47333cfd36a66d