Fixed PSR styles
Added trim when passing object toView()