fixed coding standard and php doc/type issues