another pass on code style

@manishamde , this PR contains no code changes. For code styles, I did the following:

Put a space after ,.
Use === instead of == in tests.
Remove space before :.
4-space indentation for method declaration.
Please follow Spark's code style guide for your next contribution! I'm looking forward to it ~ :)

I will send other comments to your PR at apache/spark.