codingguidelines: Add else to single line if example

This commit is contained in:
Stefan Herbrechtsmeier 2013-03-09 12:42:13 +01:00
parent 777393f630
commit f54d10e3ee

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