Repository navigation
Commit 1e6600f
committed
Extract confusing multi-line WAYF remember-choice conditions in SingleSignOn
# If applied, this commit will...
Extract two multi-line boolean conditions in SingleSignOn into named
local variables.
# Why is this change needed?
Prior to this change, both conditions mixed a multi-line function call
or comparison with trailing || continuation lines indented deeper than
the if(, which was flagged in review as hard to read ('broken indent?'
and 'rewrite to human readable ifs').
# How does it address the issue?
This change assigns each condition to a clearly named boolean
($legacyRememberChoiceAllowed, $notEligibleForRememberedIdp) before
the if statement, with no change in behavior.
# Provide links to any relevant tickets, articles or other resources
#20911 parent 7aa2bce commit 1e6600f
1 file changed
Lines changed: 9 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
| 233 | + | |
234 | 234 | | |
235 | | - | |
236 | | - | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
237 | 239 | | |
238 | 240 | | |
239 | 241 | | |
| |||
482 | 484 | | |
483 | 485 | | |
484 | 486 | | |
485 | | - | |
| 487 | + | |
486 | 488 | | |
487 | 489 | | |
488 | 490 | | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
493 | 494 | | |
494 | 495 | | |
495 | 496 | | |
| |||
0 commit comments