[Form] Fixed typos

This commit is contained in:
Pascal Borreli 2011-04-24 14:04:23 +00:00
parent 8eb1dfc6a0
commit 06b3c386d9
5 changed files with 3 additions and 9 deletions

View File

@ -18,9 +18,8 @@ class MonthChoiceList extends PaddedChoiceList
/** /**
* Generates an array of localized month choices * Generates an array of localized month choices
* *
* @param array $months The month numbers to generate * @param IntlDateFormatter $formatter An IntlDateFormatter instance
* @return array The localized months respecting the configured * @param array $months The month numbers to generate
* locale and date format
*/ */
public function __construct(\IntlDateFormatter $formatter, array $months) public function __construct(\IntlDateFormatter $formatter, array $months)
{ {

View File

@ -26,7 +26,6 @@ class TimeType extends AbstractType
public function buildForm(FormBuilder $builder, array $options) public function buildForm(FormBuilder $builder, array $options)
{ {
$hourOptions = $minuteOptions = $secondOptions = array(); $hourOptions = $minuteOptions = $secondOptions = array();
$parts = array('hour', 'minute');
if ($options['widget'] === 'choice') { if ($options['widget'] === 'choice') {
$hourOptions['choice_list'] = new PaddedChoiceList( $hourOptions['choice_list'] = new PaddedChoiceList(

View File

@ -156,8 +156,6 @@ class DelegatingValidator implements FormValidatorInterface
$iterator = new \RecursiveIteratorIterator($iterator); $iterator = new \RecursiveIteratorIterator($iterator);
foreach ($iterator as $child) { foreach ($iterator as $child) {
$path = (string)$child->getAttribute('property_path');
$nestedNamePath = $namePath . $child->getName(); $nestedNamePath = $namePath . $child->getName();
$forms[$nestedNamePath] = $child; $forms[$nestedNamePath] = $child;

View File

@ -11,7 +11,6 @@
namespace Symfony\Component\Form; namespace Symfony\Component\Form;
use Symfony\Component\Form\Guess\TypeGuesserInterface;
use Symfony\Component\Form\Guess\Guess; use Symfony\Component\Form\Guess\Guess;
use Symfony\Component\Form\Exception\FormException; use Symfony\Component\Form\Exception\FormException;
@ -119,7 +118,6 @@ class FormFactory implements FormFactoryInterface
{ {
$builder = null; $builder = null;
$types = array(); $types = array();
$typeExtensions = array();
$knownOptions = array(); $knownOptions = array();
$passedOptions = array_keys($options); $passedOptions = array_keys($options);

View File

@ -125,7 +125,7 @@ class PropertyPath implements \IteratorAggregate
/** /**
* Returns the element at the given index in the property path * 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 * @return string A property or index name
*/ */