Merge remote branch 'pborreli/form-typo'
* pborreli/form-typo: [Form] Fixed typos
This commit is contained in:
commit
c6e0ccfdcd
@ -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)
|
||||
{
|
||||
|
@ -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(
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user