Skip to content

Commit 3f49717

Browse files
committed
Revert "fixed typo"
This reverts commit 6830d9f4c904d74020d2619fae990670edb3c3de.
1 parent 34b17b5 commit 3f49717

20 files changed

+25
-39
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php echo $view['form']->block($form, 'widget_attributes');
1+
<?php echo $view['form']->block($form, 'widget_attributes') ?>
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
<?php if (!$label) {
2-
$label = isset($label_format)
1+
<?php if (!$label) { $label = isset($label_format)
32
? strtr($label_format, array('%name%' => $name, '%id%' => $id))
4-
: $view['form']->humanize($name);
5-
} ?>
3+
: $view['form']->humanize($name); } ?>
64
<button type="<?php echo isset($type) ? $view->escape($type) : 'button' ?>" <?php echo $view['form']->block($form, 'button_attributes') ?>><?php echo $view->escape($view['translator']->trans($label, array(), $translation_domain)) ?></button>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php echo $view['form']->block($form, 'choice_widget_options');
1+
<?php echo $view['form']->block($form, 'choice_widget_options') ?>

Resources/views/Form/choice_widget_options.html.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php use Symfony\Component\Form\ChoiceList\View\ChoiceGroupView;
22

3-
$translatorHelper = $view['translator']; // outside of the loop for performance reasons!?>
3+
$translatorHelper = $view['translator']; // outside of the loop for performance reasons! ?>
44
<?php $formHelper = $view['form']; ?>
55
<?php foreach ($choices as $group_label => $choice): ?>
66
<?php if (is_array($choice) || $choice instanceof ChoiceGroupView): ?>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php echo $view['form']->block($form, 'widget_container_attributes');
1+
<?php echo $view['form']->block($form, 'widget_container_attributes') ?>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php echo $view['form']->block($form, 'form_widget_simple', array('type' => isset($type) ? $type : 'email'));
1+
<?php echo $view['form']->block($form, 'form_widget_simple', array('type' => isset($type) ? $type : 'email')) ?>
Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
11
<?php if (false !== $label): ?>
2-
<?php if ($required) {
3-
$label_attr['class'] = trim((isset($label_attr['class']) ? $label_attr['class'] : '').' required');
4-
} ?>
5-
<?php if (!$compound) {
6-
$label_attr['for'] = $id;
7-
} ?>
8-
<?php if (!$label) {
9-
$label = isset($label_format)
2+
<?php if ($required) { $label_attr['class'] = trim((isset($label_attr['class']) ? $label_attr['class'] : '').' required'); } ?>
3+
<?php if (!$compound) { $label_attr['for'] = $id; } ?>
4+
<?php if (!$label) { $label = isset($label_format)
105
? strtr($label_format, array('%name%' => $name, '%id%' => $id))
11-
: $view['form']->humanize($name);
12-
} ?>
13-
<label <?php foreach ($label_attr as $k => $v) {
14-
printf('%s="%s" ', $view->escape($k), $view->escape($v));
15-
} ?>><?php echo $view->escape(false !== $translation_domain ? $view['translator']->trans($label, array(), $translation_domain) : $label) ?></label>
6+
: $view['form']->humanize($name); } ?>
7+
<label <?php foreach ($label_attr as $k => $v) { printf('%s="%s" ', $view->escape($k), $view->escape($v)); } ?>><?php echo $view->escape(false !== $translation_domain ? $view['translator']->trans($label, array(), $translation_domain) : $label) ?></label>
168
<?php endif ?>
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<?php $method = strtoupper($method) ?>
22
<?php $form_method = $method === 'GET' || $method === 'POST' ? $method : 'POST' ?>
3-
<form name="<?php echo $name ?>" method="<?php echo strtolower($form_method) ?>" action="<?php echo $action ?>"<?php foreach ($attr as $k => $v) {
4-
printf(' %s="%s"', $view->escape($k), $view->escape($v));
5-
} ?><?php if ($multipart): ?> enctype="multipart/form-data"<?php endif ?>>
3+
<form name="<?php echo $name ?>" method="<?php echo strtolower($form_method) ?>" action="<?php echo $action ?>"<?php foreach ($attr as $k => $v) { printf(' %s="%s"', $view->escape($k), $view->escape($v)); } ?><?php if ($multipart): ?> enctype="multipart/form-data"<?php endif ?>>
64
<?php if ($form_method !== $method): ?>
75
<input type="hidden" name="_method" value="<?php echo $method ?>" />
86
<?php endif ?>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php echo $view['form']->widget($form);
1+
<?php echo $view['form']->widget($form) ?>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php echo $view['form']->block($form, 'form_widget_simple', array('type' => isset($type) ? $type : 'hidden'));
1+
<?php echo $view['form']->block($form, 'form_widget_simple', array('type' => isset($type) ? $type : 'hidden')) ?>

0 commit comments

Comments
 (0)