Last active
October 5, 2017 11:25
-
-
Save bitwombat/2b3f08e5984bba782c520a23e8c276ab to your computer and use it in GitHub Desktop.
PHPStorm/EA Extended inspections complains about this else.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ($mustBeCurrent) { | |
$title = 'People currently proficient in'; | |
} else { | |
$title = 'People who have ever had training in'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
PHPstorm's inspections (might be part of the EA Extended Plugin's inspections) complain that:
This seems to be part of the trendy "war on if statements", but the logic above seems completely appropriate and readable. More so than the "default assignment" style. What do you think?