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