php 5.4 fixes; travis fixes; code climate fixes