diff --git a/src/Symfony/Component/Form/Extension/Core/ChoiceList/MonthChoiceList.php b/src/Symfony/Component/Form/Extension/Core/ChoiceList/MonthChoiceList.php index 6146b2941e..b1b11b0128 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 bf5da26087..2716b74658 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 5a88b372ab..f4a4414526 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 194bb21b37..8af465808c 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; use Symfony\Component\Form\Exception\UnexpectedTypeException; @@ -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 */