Conditions | 7 |
Paths | 7 |
Total Lines | 20 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
6 | public static function get($key, $id_lang = NULL) |
||
7 | { |
||
8 | if ( $key === "PS_CORREIOS_FACTORY" ) |
||
9 | return "Soapclient"; |
||
10 | |||
11 | if ( $key === "PS_CORREIOS_CARRIER_1" ) |
||
12 | return "04510"; #era "41106"; # PAC |
||
13 | |||
14 | if ( $key === "PS_CORREIOS_CARRIER_2" ) |
||
15 | return "04014"; #era "40010"; # SEDEX |
||
16 | |||
17 | if ( $key === "PS_CORREIOS_CARRIER_3" ) |
||
18 | return "40215"; # SEDEX 10 |
||
19 | |||
20 | if ( $key === "PS_CORREIOS_CARRIER_4" ) |
||
21 | return "40290"; # SEDEX HOJE |
||
22 | |||
23 | if( $key === "PS_CORREIOS_CEP_ORIG" ) |
||
24 | return "01311000"; # av paulista |
||
25 | } |
||
26 | |||
32 | } |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.