Conditions | 6 |
Paths | 6 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
70 | public function getCat($str) |
||
71 | { |
||
72 | switch ($str) { |
||
73 | case "penyakit": return "Penyakit"; break; |
||
|
|||
74 | case "obat": return "Obat - obatan"; break; |
||
75 | case "hidup-sehat": return "Hidup Sehat"; break; |
||
76 | case "keluarga": return "Keluarga"; break; |
||
77 | case "kesehatan": return "Kesehatan"; break; |
||
78 | } |
||
81 |
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.