Skip to content

Commit 228a80d

Browse files
committed
[Form] Add range type #11979 - minor formatting fixes, added author block
1 parent 3c5404b commit 228a80d

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/Symfony/Component/Form/Extension/Core/Type/RangeType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function configureOptions(OptionsResolver $resolver)
5050
$resolver->setAllowedTypes('max', 'numeric');
5151
$resolver->setAllowedTypes('step', 'numeric');
5252

53-
$resolver->setAllowedValues('step', function($value) {
53+
$resolver->setAllowedValues('step', function ($value) {
5454
return $value > 0;
5555
});
5656
}

src/Symfony/Component/Form/Tests/AbstractBootstrap3LayoutTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1393,7 +1393,7 @@ public function testRange()
13931393
$form = $this->factory->createNamed('name', 'range', 123.45, array(
13941394
'min' => 1.25,
13951395
'max' => 234.56,
1396-
'step' => 0.25
1396+
'step' => 0.25,
13971397
));
13981398

13991399
$this->assertWidgetMatchesXpath($form->createView(), array('attr' => array('class' => 'my&class')),

src/Symfony/Component/Form/Tests/Extension/Core/Type/RangeTypeTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313

1414
use Symfony\Component\Form\Test\TypeTestCase as TestCase;
1515

16+
/**
17+
* @author Pawel Krynicki <pawel.krynicki@hotmail.com>
18+
*/
1619
class RangeTypeTest extends TestCase
1720
{
1821
/**

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy