use strict comparison for strings
Removed superfluous break

In every case of the if clause it will return, so break is not needed.
Merge pull request #1394 from ravage84/patch-2

Removed superfluous break
Backporting from 2.4 fix for booleans in mysql when running PHP 5.5
coding standards and simplification of else cases as well as some minor fixes
simplify else cases
Merge pull request #1395 from dereuromark/master-cs

coding standards and simplification of else cases as well as some fixes