mirror of
https://github.com/nextcloud/documentation.git
synced 2025-10-26 11:18:02 +00:00
codingguidelines: Add else to single line if example
This commit is contained in:
parent
a5761ca8d0
commit
324d542673
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user