Make construct snippet PSR compliant.

Hi,

Since most new php projects these days are PSR compliant, I thought it would make sense to fix this snippet.

Thanks for all your work.