Fix PHP and JavaScript style errors
Summary
According to our guidelines, we follow PSR2 and AirBNB coding standards. It appears that pipeline fail because there are some warnings.
Steps to reproduce
Run phpcs and eslint in strict mode on the code (See Contributing)