Scrutinizer Auto-Fixes

@tanghus requested this pull request.

This patch was automatically generated as part of the following inspection:
https://scrutinizer-ci.com/g/tanghus/journal/inspections/7ba5ad14-bf6b-4028-a540-99b0e41dc01e

Enabled analysis tools:
 - PHP Analyzer
 - PHP Mess Detector
 - PHP Code Sniffer
 - JSHint
 - PHP Copy/Paste Detector
 - PHP PDepend