Scrutinizer Auto-Fixes

@Spuds requested this pull request.

This patch was automatically generated as part of the following inspection:
https://scrutinizer-ci.com/g/Spuds/Elkarte/inspections/13ef6cab-e47c-4061-b7d6-80a05ce4d5b3

Enabled analysis tools:
 - PHP Analyzer
 - JSHint
 - Security Advisory Checker
 - PHP Copy/Paste Detector