Scrutinizer Auto-Fixes

@leonrenkema requested this pull request.

This patch was automatically generated as part of the following inspection:
https://scrutinizer-ci.com/g/leonrenkema/messaging/inspections/4fb8e07a-747c-4770-b943-f81ef56a657e

Enabled analysis tools:
 - PHP Analyzer
 - PHP Copy/Paste Detector
 - PHP PDepend