Code Duplication    Length = 7-9 lines in 2 locations

src/Visitor/Php/Symfony/FormTypeLabelExplicit.php 1 location

@@ 50-56 (lines=7) @@
47
                continue;
48
            }
49
50
            if ('translation_domain' === $item->key->value) {
51
                if ($item->value instanceof Node\Scalar\String_) {
52
                    $domain = $item->value->value;
53
                } elseif ($item->value instanceof Node\Expr\ConstFetch && 'false' === $item->value->name->toString()) {
54
                    $domain = false;
55
                }
56
            }
57
58
            if ('label' !== $item->key->value) {
59
                continue;

src/Visitor/Php/Symfony/FormTypeChoices.php 1 location

@@ 87-95 (lines=9) @@
84
                continue;
85
            }
86
87
            if ('choice_translation_domain' === $item->key->value) {
88
                if ($item->value instanceof Node\Scalar\String_) {
89
                    $domain = $item->value->value;
90
                } elseif ($item->value instanceof Node\Expr\ConstFetch && 'false' === $item->value->name->toString()) {
91
                    $domain = false;
92
                }
93
94
                continue;
95
            }
96
97
            if ('choices' !== $item->key->value) {
98
                continue;