| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1.027 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | 3 | protected function build(TypeConfigInterface $config) |
|
| 19 | { |
||
| 20 | $config |
||
| 21 | 3 | ->addField('name', TypeMap::TYPE_STRING, [ |
|
| 22 | 'resolve' => function ($value, $args) { |
||
| 23 | $a = 'asd'; |
||
| 24 | } |
||
| 25 | 3 | ]) |
|
| 26 | 3 | ->addField('description', TypeMap::TYPE_STRING) |
|
| 27 | 3 | ->addField('deprecationReason', TypeMap::TYPE_STRING) |
|
| 28 | 3 | ->addField('isDeprecated', TypeMap::TYPE_BOOLEAN); |
|
| 29 | 3 | } |
|
| 30 | |||
| 43 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.