Created
December 5, 2011 20:20
-
-
Save DASPRiD/1435184 to your computer and use it in GitHub Desktop.
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
<?php | |
// Makes no sense insert comment after case A and B | |
switch ($foo) { | |
case 'a': | |
case 'b': | |
case 'c': | |
$bar = 'baz'; | |
break; | |
} | |
// Here it makes sense, because it could be seen as bug | |
switch ($foo) { | |
case 'a': | |
$baz = 'baz'; | |
// break intentionally omitted | |
case 'b': | |
case 'c': | |
$bar = 'baz'; | |
break; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment