Scrutinizer Auto-Fixes

@Jmoati requested this pull request.

This patch was automatically generated as part of the following inspection:
https://scrutinizer-ci.com/g/Jmoati/Companion-Core/inspections/16222dc6-3c30-4cdf-b05c-d3eb172ade00

Enabled analysis tools:
 - PHP Analyzer
 - PHP Mess Detector
 - PHP Code Sniffer
 - PHP Copy/Paste Detector
 - PHP Lines Of Code
 - PHP PDepend
 - PHP HHVM