As per the PSR-2 coding standard, case statements should not be wrapped in curly braces.
There is no need for braces, since each case is terminated by the next break.
There is also the option to use a semicolon instead of a colon, this is discouraged because
many programmers do not even know it works and the colon is universal between programming
languages.
As per the PSR-2 coding standard, case statements should not be wrapped in curly braces.
There is no need for braces, since each case is terminated by the next break.
There is also the option to use a semicolon instead of a colon, this is discouraged because
many programmers do not even know it works and the colon is universal between programming
languages.
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.