Apply Pinterest API fix suggested by @dsposito
PSR2 standards cleanup.