| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 11 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 54 | View Code Duplication | public function create(array $options = []) |
|
| 55 | { |
||
| 56 | $options = $this->optionsResolver->resolve($options); |
||
| 57 | |||
| 58 | /** @var StringBlock $stringBlock */ |
||
| 59 | $stringBlock = $this->factory->createNew(); |
||
| 60 | $stringBlock->setName($options['name']); |
||
| 61 | $stringBlock->setBody($options['body']); |
||
| 62 | |||
| 63 | return $stringBlock; |
||
| 64 | } |
||
| 65 | } |
||
| 66 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.