[ticket/269] Fix codesniffer complaints

B3P-269
[ticket/269] Move definition of portal tables to services file

B3P-269
[ticket/269] Use trimmessage tool as extension and add test

B3P-269
[ticket/269] Remove IN_PHPBB check from functions file

B3P-269
Merge pull request #270 from marc1706/ticket/269

Fix codesniffer complaints