What are the different kinds of indent style in use? Are there any objective differences? How do you determine the indent style for a whole development shop?
The indent style that I use is the so-called BSD KNF style or Kernel Normal Form. It's for me the most logical way of formatting my code. For instance:
//I also prefer one tab per indent
if ($foo == 'bar') {
something();
elseif ($bar) {
somethingElse();
}
}
What style do you use and why do you prefer that particular style?