Scrutinizer Auto-Fixes

@takeit requested this pull request.

This patch was automatically generated as part of the following inspection:
https://scrutinizer-ci.com/g/takeit/Newscoop/inspections/3aa67dcb-38de-4c4b-bcb9-c9eaf80a2ede

Enabled analysis tools:
 - PHP Analyzer
 - PHP PDepend
 - PHP Similarity Analyzer
 - PHP Change Tracking Analyzer