Declared missing var, fixed php doc & spelling, spacing

Change-Id: I7a60eeb224cc0e1c013f59df42fc4a7805df8a5b
Merge "Declared missing var, fixed php doc & spelling, spacing"