Scrutinizer Auto-Fixes

@navarr requested this pull request.

This patch was automatically generated as part of the following inspection:
https://scrutinizer-ci.com/g/navarr/Sockets/inspections/bef43ae4-8d71-44c0-9fd6-2be1b1a81cda