Fix "if" style

Most "if" use the following style:

    if (...) {
      ...;
    } else {
      ...;
    }

So all "if" use the style.