[ticket/11358] Fixed the code according to coding guidlines.

Added proper indentation and new line after break in switch
statement.

PHPBB3-11358
[ticket/11358] Removed all trailing white spaces.

Removed all trailing white spaces with new lines.

PHPBB3-11358
Merge branch 'ticket/11358' into develop-olympus

* ticket/11358:
  [ticket/11358] Removed all trailing white spaces.
  [ticket/11358] Fixed the code according to coding guidlines.
Merge branch 'develop-olympus' into develop

* develop-olympus:
  [ticket/11358] Removed all trailing white spaces.
  [ticket/11358] Fixed the code according to coding guidlines.