[ticket/249] Fix codesniffer complaints in portal files

B3P-249