diff --git a/src/Symfony/Bridge/Twig/Resources/views/Form/bootstrap_3_horizontal_layout.html.twig b/src/Symfony/Bridge/Twig/Resources/views/Form/bootstrap_3_horizontal_layout.html.twig index f6b8671513..767e2798f3 100644 --- a/src/Symfony/Bridge/Twig/Resources/views/Form/bootstrap_3_horizontal_layout.html.twig +++ b/src/Symfony/Bridge/Twig/Resources/views/Form/bootstrap_3_horizontal_layout.html.twig @@ -9,7 +9,7 @@ {% block form_label -%} {% spaceless %} - {% if label is sameas(false) %} + {% if label is same as(false) %}
{% else %} {% set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' ' ~ block('form_label_class'))|trim}) %} diff --git a/src/Symfony/Bridge/Twig/Resources/views/Form/bootstrap_3_layout.html.twig b/src/Symfony/Bridge/Twig/Resources/views/Form/bootstrap_3_layout.html.twig index 7405612a9b..a788a3df89 100644 --- a/src/Symfony/Bridge/Twig/Resources/views/Form/bootstrap_3_layout.html.twig +++ b/src/Symfony/Bridge/Twig/Resources/views/Form/bootstrap_3_layout.html.twig @@ -166,12 +166,12 @@ {% if parent_label_class is defined %} {% set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' ' ~ parent_label_class)|trim}) %} {% endif %} - {% if label is not sameas(false) and label is empty %} + {% if label is not same as(false) and label is empty %} {% set label = name|humanize %} {% endif %} {{- widget|raw -}} - {{- label is not sameas(false) ? (translation_domain is sameas(false) ? label : label|trans({}, translation_domain)) -}} + {{- label is not same as(false) ? (translation_domain is same as(false) ? label : label|trans({}, translation_domain)) -}} {% endif %} {% endblock checkbox_radio_label %} diff --git a/src/Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.html.twig b/src/Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.html.twig index 1c428fdbc7..77275db49e 100644 --- a/src/Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.html.twig +++ b/src/Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.html.twig @@ -74,13 +74,13 @@ {%- block choice_widget_options -%} {% for group_label, choice in options %} {%- if choice is iterable -%} - + {% set options = choice %} {{- block('choice_widget_options') -}} {%- else -%} {% set attr = choice.attr %} - + {%- endif -%} {% endfor %} {%- endblock choice_widget_options -%} @@ -220,7 +220,7 @@ {% set label = name|humanize %} {%- endif -%} {%- endif -%} - {{ translation_domain is sameas(false) ? label : label|trans({}, translation_domain) }} + {{ translation_domain is same as(false) ? label : label|trans({}, translation_domain) }} {%- endif -%} {%- endblock form_label -%} @@ -321,9 +321,9 @@ {{- " " -}} {%- if attrname in ['placeholder', 'title'] -%} {{- attrname }}="{{ attrvalue|trans({}, translation_domain) }}" - {%- elseif attrvalue is sameas(true) -%} + {%- elseif attrvalue is same as(true) -%} {{- attrname }}="{{ attrname }}" - {%- elseif attrvalue is not sameas(false) -%} + {%- elseif attrvalue is not same as(false) -%} {{- attrname }}="{{ attrvalue }}" {%- endif -%} {%- endfor -%} @@ -335,9 +335,9 @@ {{- " " -}} {%- if attrname in ['placeholder', 'title'] -%} {{- attrname }}="{{ attrvalue|trans({}, translation_domain) }}" - {%- elseif attrvalue is sameas(true) -%} + {%- elseif attrvalue is same as(true) -%} {{- attrname }}="{{ attrname }}" - {%- elseif attrvalue is not sameas(false) -%} + {%- elseif attrvalue is not same as(false) -%} {{- attrname }}="{{ attrvalue }}" {%- endif -%} {%- endfor -%} @@ -349,9 +349,9 @@ {{- " " -}} {%- if attrname in ['placeholder', 'title'] -%} {{- attrname }}="{{ attrvalue|trans({}, translation_domain) }}" - {%- elseif attrvalue is sameas(true) -%} + {%- elseif attrvalue is same as(true) -%} {{- attrname }}="{{ attrname }}" - {%- elseif attrvalue is not sameas(false) -%} + {%- elseif attrvalue is not same as(false) -%} {{- attrname }}="{{ attrvalue }}" {%- endif -%} {%- endfor -%} @@ -362,9 +362,9 @@ {{- " " -}} {%- if attrname in ['placeholder', 'title'] -%} {{- attrname }}="{{ attrvalue|trans({}, translation_domain) }}" - {%- elseif attrvalue is sameas(true) -%} + {%- elseif attrvalue is same as(true) -%} {{- attrname }}="{{ attrname }}" - {%- elseif attrvalue is not sameas(false) -%} + {%- elseif attrvalue is not same as(false) -%} {{- attrname }}="{{ attrvalue }}" {%- endif -%} {%- endfor -%} diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/form.html.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/form.html.twig index 037ad28c84..33cbf8f242 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/form.html.twig +++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/form.html.twig @@ -610,7 +610,7 @@ {{ option }}
{{ value }}
- {% if data.resolved_options[option] is sameas(value) %} + {% if data.resolved_options[option] is same as(value) %} same as passed value {% else %}
{{ data.resolved_options[option] }}