| Total Complexity | 10 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 4 | final class Codes |
||
| 5 | { |
||
| 6 | const OK = 0; |
||
| 7 | const INI_SIZE = 1; |
||
| 8 | const FORM_SIZE = 2; |
||
| 9 | const PARTIAL = 3; |
||
| 10 | const NO_FILE = 4; |
||
| 11 | const NO_TMP_DIR = 6; |
||
| 12 | const CANT_WRITE = 7; |
||
| 13 | const EXTENSION = 8; |
||
| 14 | /* custom codes */ |
||
| 15 | const TYPE_NOT_ALLOWED = 91; |
||
| 16 | |||
| 17 | public static function getMessage($errorCode) |
||
| 47 |
The
breakstatement is not necessary if it is preceded for example by areturnstatement:If you would like to keep this construct to be consistent with other
casestatements, you can safely mark this issue as a false-positive.