Move curly bracket to be on the same line

This makes PSR coding standard to pass and also gives more consistency between examples (as curly brackets are on the same line).
Merge pull request #3301 from ifdattic/patch-1

Move curly bracket to be on the same line