Преглед на файлове

Merge remote branch 'pborreli/form-typo'

* pborreli/form-typo:
  [Form] Fixed typos
Fabien Potencier преди 14 години
родител
ревизия
c6e0ccfdcd

+ 2 - 3
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)
     {

+ 0 - 1
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(

+ 0 - 2
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;
 

+ 0 - 2
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);
 

+ 1 - 1
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
      */