Completed
Push — master ( 0a5acd...43aa97 )
by Guilherme Luiz Argentino
05:40
created

Configuration   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 30
rs 10
c 0
b 0
f 0
wmc 8
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
B get() 0 20 7
A getMultiple() 0 4 1
1
<?php
2
3
class Configuration extends ObjectModel
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
4
{
5
6
    public static function get($key, $id_lang = NULL)
0 ignored issues
show
Unused Code introduced by
The parameter $id_lang is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
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
27
    public static function getMultiple($keys, $id_lang = NULL)
0 ignored issues
show
Unused Code introduced by
The parameter $keys is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $id_lang is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
28
    {
29
      return array();
30
    }
31
32
}