Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
11 | function get($key) |
||
12 | { |
||
13 | switch ($key) { |
||
14 | case 'reply_email': |
||
15 | return '[email protected]'; |
||
16 | break; |
||
|
|||
17 | default: |
||
18 | return 1; |
||
19 | break; |
||
20 | } |
||
21 | } |
||
22 | |||
65 |
The break statement is not necessary if it is preceded for example by a return statement:
If you would like to keep this construct to be consistent with other case statements, you can safely mark this issue as a false-positive.