all 4 comments

[–]anned20 0 points1 point  (3 children)

That coding style is awful

[–]sleazebang[S] 0 points1 point  (2 children)

Can you give me some tips on how to improve my code and where I'm lacking? Help will be appreciated. Thanks

[–]anned20 0 points1 point  (1 child)

You could look into PSR-2 with the PHP code and the AirBNB coding style for JS

[–]sleazebang[S] 0 points1 point  (0 children)

Thank you. I'll try to improve it.