Scrutinizer Auto-Fixes

This patch was automatically generated as part of the following inspection:
https://scrutinizer-ci.com/g/hypeJunction/hypeGallery/inspections/25eb22d1-a3bb-4de9-9bf0-c8090d684bbd

Enabled analysis tools:
 - PHP Analyzer
 - PHP Mess Detector
 - PHP Code Sniffer
 - JSHint
 - Security Advisory Checker
 - PHP PDepend
 - PHP HHVM
 - PHP Similarity Analyzer
 - PHP Change Tracking Analyzer
Fix indentation
Merge branch 'master' into scrutinizer-patch-1

Conflicts:
	lib/events.php
Merge branch 'scrutinizer-patch-1'