PHPDoc for PayPal EC gateway and a minor refactoring