codingguidelines: Add else to single line if example

This commit is contained in:
Stefan Herbrechtsmeier
2013-03-09 12:42:13 +01:00
committed by Bernhard Posselt
parent a5761ca8d0
commit 324d542673

View File

@@ -118,6 +118,8 @@ Control Structures
// single line if
if($myVar === 'hi') {
$myVar = 'ho';
} else {
$myVar = 'bye';
}
// long ifs
@@ -289,6 +291,8 @@ Control Structures
// single line if
if(myVar === 'hi'){
myVar = 'ho';
} else {
myVar = 'bye';
}
// long ifs