Whitespace style fixes

if(, while( -> if (, while (

(cherry picked from commit d90df67689a7b151496f0d66e3fdcad51440e519)