| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | public function dump(){ |
||
| 33 | |||
| 34 | switch($this->options->type){ |
||
| 35 | case QRCode::OUTPUT_STRING_TEXT: return $this->toString(); |
||
|
2 ignored issues
–
show
|
|||
| 36 | case QRCode::OUTPUT_STRING_JSON: |
||
| 37 | default: |
||
| 38 | return json_encode($this->matrix); |
||
| 39 | } |
||
| 40 | |||
| 41 | } |
||
| 42 | |||
| 63 |
According to the PSR-2, the body of a case statement must start on the line immediately following the case statement.
}
To learn more about the PSR-2 coding standard, please refer to the PHP-Fig.