src/Visitor/Php/Symfony/FormTypeChoices.php 1 location
|
@@ 85-93 (lines=9) @@
|
82 |
|
continue; |
83 |
|
} |
84 |
|
|
85 |
|
if ('choice_translation_domain' === $item->key->value) { |
86 |
|
if ($item->value instanceof Node\Scalar\String_) { |
87 |
|
$domain = $item->value->value; |
88 |
|
} elseif ($item->value instanceof Node\Expr\ConstFetch && 'false' === $item->value->name->toString()) { |
89 |
|
$domain = false; |
90 |
|
} |
91 |
|
|
92 |
|
continue; |
93 |
|
} |
94 |
|
|
95 |
|
if ('choices' !== $item->key->value) { |
96 |
|
continue; |
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/FormTypeLabelImplicit.php 1 location
|
@@ 56-62 (lines=7) @@
|
53 |
|
$skipLabel = true; |
54 |
|
} |
55 |
|
|
56 |
|
if (isset($item->key) && 'translation_domain' === $item->key->value) { |
57 |
|
if ($item->value instanceof Node\Scalar\String_) { |
58 |
|
$domain = $item->value->value; |
59 |
|
} elseif ($item->value instanceof Node\Expr\ConstFetch && 'false' === $item->value->name->toString()) { |
60 |
|
$domain = false; |
61 |
|
} |
62 |
|
} |
63 |
|
} |
64 |
|
} |
65 |
|
/* |
src/Visitor/Php/Symfony/FormTypeHelp.php 1 location
|
@@ 38-45 (lines=8) @@
|
35 |
|
if (!$item->key instanceof Node\Scalar\String_) { |
36 |
|
continue; |
37 |
|
} |
38 |
|
if ('translation_domain' === $item->key->value) { |
39 |
|
// Try to find translation domain |
40 |
|
if ($item->value instanceof Node\Scalar\String_) { |
41 |
|
$domain = $item->value->value; |
42 |
|
} |
43 |
|
} elseif ('help' === $item->key->value) { |
44 |
|
$helpNode = $item; |
45 |
|
} |
46 |
|
} |
47 |
|
|
48 |
|
if (null === $helpNode) { |