In my company we have coding styles, that include always using curly braces with an if-statement, so:
// instead of this...
if (condition)
doThis();
// we want this
if (condition) {
doThis();
}
Now not everyone has done this since the start and we would like to clean up and make the code more consistent. Is there a way (with PHPStorm preferably) to find all braceless if-statements?
Aucun commentaire:
Enregistrer un commentaire