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).