Fixed spacing in db/debug/diff/externalstore/objectcache folder

Added spaces before if, foreach
Added some braces for one line statements

Change-Id: I32a43c547630ce31b6b25cc1bc9eedc50e67b2d7