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

Scrutinizer fixes