| Conditions | 4 |
| Paths | 4 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 28 | protected function sanitizeValue(): void |
||
| 29 | { |
||
| 30 | $seen = []; |
||
| 31 | foreach ($this->list as $item) { |
||
| 32 | if ($item instanceof Parameter) { |
||
| 33 | $name = $item->getName(); |
||
| 34 | $in = $item->getIn()->toNative(); |
||
| 35 | if (!empty($seen[$name][$in])) { |
||
| 36 | throw new DuplicateParameterInParameterList($name, Parameter::fromNative($in)); |
||
| 37 | } |
||
| 38 | $seen[$name][$in] = true; |
||
| 39 | } |
||
| 43 |