1 | <?php |
||
19 | class Json implements IHandler |
||
20 | { |
||
21 | /** |
||
22 | * @param $body |
||
23 | * @return string |
||
24 | */ |
||
25 | 2 | public function encode($body) |
|
29 | |||
30 | /** |
||
31 | * @param $body |
||
32 | * @return mixed |
||
33 | */ |
||
34 | 2 | public function decode($body) |
|
40 | |||
41 | /** |
||
42 | * @return string |
||
43 | */ |
||
44 | private static function jsonLastErrorMsg(){ |
||
70 | } |
||
71 | |||
72 |
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.