Conditions | 5 |
Paths | 5 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | public function icon() |
||
20 | { |
||
21 | switch($this->type) |
||
22 | { |
||
23 | case 'info' : return 'info' ; break; |
||
|
|||
24 | case 'warning' : return 'exclamation-triangle' ; break; |
||
25 | case 'success' : return 'check' ; break; |
||
26 | case 'danger' : return 'ban' ; break; |
||
27 | default : return 'exclamation'; break; |
||
28 | } |
||
35 | } |
The
break
statement is not necessary if it is preceded for example by areturn
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.