Scrutinizer Auto-Fixes

@prisis requested this pull request.

This patch was automatically generated as part of the following inspection:
https://scrutinizer-ci.com/g/narrowspark/framework/inspections/30223598-f73e-4da0-a6c6-82bd4a71a968