Fixed many small spelling mistakes and php docs, var decl.

Change-Id: I1508ed7eb77e5e4f700fb63955d626c4f5915840
Merge "Fixed many small spelling mistakes and php docs, var decl."