Only have Scrutinizer check PHP files
Exclude docs and images foldes from Scrutinizer
Correct line length and indentation
Merge pull request #2348 from simonwelsh/scrut

Scrutinizer fixes
Fix Behat window switching in chrome

Workaround only, see https://groups.google.com/forum/#!topic/behat/QNhOuGHKEWI
Merge remote-tracking branch 'origin/3.0' into 3.1.0

Conflicts:
	model/Hierarchy.php
Merge remote-tracking branch 'origin/3.1.0' into 3.1

Conflicts:
	dev/BehatFixtureFactory.php
	model/Hierarchy.php
	tests/behat/features/bootstrap/FeatureContext.php
	tests/core/CoreTest.php