mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-03 18:26:42 +07:00
codingguidelines: Add else to single line if example
This commit is contained in:
committed by
Bernhard Posselt
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
|
||||
|
||||
Reference in New Issue
Block a user