8000 Merge remote branch 'pborreli/form-typo' · xamba/symfony@c6e0ccf · GitHub
[go: up one dir, main page]

Skip to content

Commit c6e0ccf

Browse files
committed
Merge remote branch 'pborreli/form-typo'
* pborreli/form-typo: [Form] Fixed typos
2 parents f251eab + 06b3c38 commit c6e0ccf

File tree

5 files changed

+3
-9
lines changed

5 files changed

+3
-9
lines changed

src/Symfony/Component/Form/Extension/Core/ChoiceList/MonthChoiceList.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ class MonthChoiceList extends PaddedChoiceList
1818
/**
1919
* Generates an array of localized month choices
2020
*
21-
* @param array $months The month numbers to generate
22-
* @return array The localized months respecting the configured
23-
* locale and date format
21+
* @param IntlDateFormatter $formatter An IntlDateFormatter instance
22+
* @param array $months The month numbers to generate
2423
*/
2524
public function __construct(\IntlDateFormatter $formatter, array $months)
2625
{

src/Symfony/Component/Form/Extension/Core/Type/TimeType.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ class TimeType extends AbstractType
2626
public function buildForm(FormBuilder $builder, array $options)
2727
{
2828
$hourOptions = $minuteOptions = $secondOptions = array();
29-
$parts = array('hour', 'minute');
3029

3130
if ($options['widget'] === 'choice') {
3231
$hourOptions['choice_list'] = new PaddedChoiceList(

src/Symfony/Component/Form/Extension/Validator/Validator/DelegatingValidator.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,6 @@ private function buildNamePathMapping(FormInterface $form, array &$forms, $nameP
156156
$iterator = new \RecursiveIteratorIterator($iterator);
157157

158158
foreach ($iterator as $child) {
159-
$path = (string)$child->getAttribute('property_path');
160-
161159
$nestedNamePath = $namePath . $child->getName();
162160
$forms[$nestedNamePath] = $child;
163161

src/Symfony/Component/Form/FormFactory.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace Symfony\Component\Form;
1313

14-
use Symfony\Component\Form\Guess\TypeGuesserInterface;
1514
use Symfony\Component\Form\Guess\Guess;
1615
use Symfony\Component\Form\Exception\FormException;
1716
use Symfony\Component\Form\Exception\UnexpectedTypeException;
@@ -119,7 +118,6 @@ public function createNamedBuilder($type, $name, $data = null, array $options =
119118
{
120119
$builder = null;
121120
$types = array();
122-
$typeExtensions = array();
123121
$knownOptions = array();
124122
$passedOptions = array_keys($options);
125123

src/Symfony/Component/Form/Util/PropertyPath.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public function getElements()
125125
/**
126126
* Returns the element at the given index in the property path
127127
*
128-
* @param $index The index key
128+
* @param integer $index The index key
129129
*
130130
* @return string A property or index name
131131
*/

0 commit comments

Comments
 (0)
0