| Conditions | 3 |
| Paths | 4 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | 84 | public function __construct(array $config = []) |
|
| 26 | { |
||
| 27 | 84 | if (empty($config['type'])) { |
|
| 28 | 1 | $config['type'] = $this->getType(); |
|
| 29 | 1 | $config['name'] = $this->getName(); |
|
| 30 | 1 | } |
|
| 31 | |||
| 32 | 84 | if (TypeService::isScalarType($config['type'])) { |
|
| 33 | 48 | $config['type'] = TypeFactory::getScalarType($config['type']); |
|
| 34 | 48 | } |
|
| 35 | |||
| 36 | 84 | $this->config = new InputFieldConfig($config, $this, $this->isFinal); |
|
| 37 | 84 | $this->build($this->config); |
|
| 38 | 84 | } |
|
| 39 | |||
| 58 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.