Scrutinizer Auto-Fixes

@Niktux requested this pull request.

This patch was automatically generated as part of the following inspection:
https://scrutinizer-ci.com/g/Factory-QA/factory/inspections/dda2e45e-1d46-4de4-873f-e28f1cd4342a

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