| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 16 | public static function handle(string $property, array $yaml, $input): array |
||
| 17 | { |
||
| 18 | $yaml['annotations']['Rename'][$input] = $property; |
||
| 19 | $yaml['uses'][RenameAnnotation::class] = true; |
||
| 20 | |||
| 21 | $yaml['properties'][$input] = $yaml['properties'][$property]; |
||
| 22 | unset($yaml['properties'][$property]); |
||
| 23 | |||
| 24 | return $yaml; |
||
| 25 | } |
||
| 26 | } |
||
| 27 |