There is a bug in Netbeans 8 PHP (maybe also in other languages?) that indents every line inserted using code completion. Maybe this problem isn't present in a fresh installation and on the contrary is the result of auto-updating from 8.0.1 to 8.0.2. I'm not sure about it.
In other words, if you use code completion you end up with something like this:
$db->connect(); $db->connect(); $db->connect(); $db->connect();
Open the file
(If you are using Windows it's your problem and not the worst! )
look for the line
<entry javaType="java.lang.String" name="code-template-on-expand-action" xml:space="preserve"> <value><![CDATA[INDENT]]></value> </entry>
and rem the entire block (or delete it).
Restart Netbeans and that's it!