From 06b3c386d94e70712410a03464145a655fe2ee3e Mon Sep 17 00:00:00 2001 From: Pascal Borreli Date: Sun, 24 Apr 2011 14:04:23 +0000 Subject: [PATCH] [Form] Fixed typos --- .../Form/Extension/Core/ChoiceList/MonthChoiceList.php | 5 ++--- src/Symfony/Component/Form/Extension/Core/Type/TimeType.php | 1 - .../Extension/Validator/Validator/DelegatingValidator.php | 2 -- src/Symfony/Component/Form/FormFactory.php | 2 -- src/Symfony/Component/Form/Util/PropertyPath.php | 2 +- 5 files changed, 3 insertions(+), 9 deletions(-) diff --git a/src/Symfony/Component/Form/Extension/Core/ChoiceList/MonthChoiceList.php b/src/Symfony/Component/Form/Extension/Core/ChoiceList/MonthChoiceList.php index 5e7b371a1a..d0b4a81979 100644 --- a/src/Symfony/Component/Form/Extension/Core/ChoiceList/MonthChoiceList.php +++ b/src/Symfony/Component/Form/Extension/Core/ChoiceList/MonthChoiceList.php @@ -18,9 +18,8 @@ class MonthChoiceList extends PaddedChoiceList /** * Generates an array of localized month choices * - * @param array $months The month numbers to generate - * @return array The localized months respecting the configured - * locale and date format + * @param IntlDateFormatter $formatter An IntlDateFormatter instance + * @param array $months The month numbers to generate */ public function __construct(\IntlDateFormatter $formatter, array $months) { diff --git a/src/Symfony/Component/Form/Extension/Core/Type/TimeType.php b/src/Symfony/Component/Form/Extension/Core/Type/TimeType.php index c224b95829..e6c0203c11 100644 --- a/src/Symfony/Component/Form/Extension/Core/Type/TimeType.php +++ b/src/Symfony/Component/Form/Extension/Core/Type/TimeType.php @@ -26,7 +26,6 @@ class TimeType extends AbstractType public function buildForm(FormBuilder $builder, array $options) { $hourOptions = $minuteOptions = $secondOptions = array(); - $parts = array('hour', 'minute'); if ($options['widget'] === 'choice') { $hourOptions['choice_list'] = new PaddedChoiceList( diff --git a/src/Symfony/Component/Form/Extension/Validator/Validator/DelegatingValidator.php b/src/Symfony/Component/Form/Extension/Validator/Validator/DelegatingValidator.php index dd672dc75d..991d4a3c79 100644 --- a/src/Symfony/Component/Form/Extension/Validator/Validator/DelegatingValidator.php +++ b/src/Symfony/Component/Form/Extension/Validator/Validator/DelegatingValidator.php @@ -156,8 +156,6 @@ class DelegatingValidator implements FormValidatorInterface $iterator = new \RecursiveIteratorIterator($iterator); foreach ($iterator as $child) { - $path = (string)$child->getAttribute('property_path'); - $nestedNamePath = $namePath . $child->getName(); $forms[$nestedNamePath] = $child; diff --git a/src/Symfony/Component/Form/FormFactory.php b/src/Symfony/Component/Form/FormFactory.php index 17584f00bf..6faec91c61 100644 --- a/src/Symfony/Component/Form/FormFactory.php +++ b/src/Symfony/Component/Form/FormFactory.php @@ -11,7 +11,6 @@ namespace Symfony\Component\Form; -use Symfony\Component\Form\Guess\TypeGuesserInterface; use Symfony\Component\Form\Guess\Guess; use Symfony\Component\Form\Exception\FormException; @@ -119,7 +118,6 @@ class FormFactory implements FormFactoryInterface { $builder = null; $types = array(); - $typeExtensions = array(); $knownOptions = array(); $passedOptions = array_keys($options); diff --git a/src/Symfony/Component/Form/Util/PropertyPath.php b/src/Symfony/Component/Form/Util/PropertyPath.php index 998638341e..53050e25fd 100644 --- a/src/Symfony/Component/Form/Util/PropertyPath.php +++ b/src/Symfony/Component/Form/Util/PropertyPath.php @@ -125,7 +125,7 @@ class PropertyPath implements \IteratorAggregate /** * Returns the element at the given index in the property path * - * @param $index The index key + * @param integer $index The index key * * @return string A property or index name */