Skip to content

Commit c0dcb78

Browse files
committed
minor symfony#9964 [Validator] rundown with some typo fixes and consistency (cordoval)
This PR was merged into the 2.3 branch. Discussion ---------- [Validator] rundown with some typo fixes and consistency | Q | A | | --- | --- | | Bug fix? | no | | New feature? | no | | BC breaks? | no | | Deprecations? | no | | Tests pass? | yes | | Fixed tickets | na | | License | MIT | | Doc PR | na | Sent using [Gush](https://github.com/cordoval/gush) Commits ------- dcd23df rundown and typo fix
2 parents a0c5c6b + dcd23df commit c0dcb78

File tree

8 files changed

+14
-10
lines changed

8 files changed

+14
-10
lines changed

src/Symfony/Component/Validator/Constraint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ abstract class Constraint
7878
* returned by getRequiredOptions()
7979
* @throws ConstraintDefinitionException When you don't pass an associative
8080
* array, but getDefaultOption() returns
81-
* NULL
81+
* null
8282
*
8383
* @api
8484
*/

src/Symfony/Component/Validator/Constraints/Regex.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function getHtmlPattern()
6161
}
6262

6363
/**
64-
* Convert the htmlPattern to a suitable format for HTML5 pattern.
64+
* Converts the htmlPattern to a suitable format for HTML5 pattern.
6565
* Example: /^[a-z]+$/ would be converted to [a-z]+
6666
* However, if options are specified, it cannot be converted
6767
*

src/Symfony/Component/Validator/Resources/translations/validators.es.xlf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,11 @@
9292
</trans-unit>
9393
<trans-unit id="23">
9494
<source>This value should not be null.</source>
95-
<target>Este valor no debería ser null.</target>
95+
<target>Este valor no debería ser nulo.</target>
9696
</trans-unit>
9797
<trans-unit id="24">
9898
<source>This value should be null.</source>
99-
<target>Este valor debería ser null.</target>
99+
<target>Este valor debería ser nulo.</target>
100100
</trans-unit>
101101
<trans-unit id="25">
102102
<source>This value is not valid.</source>

src/Symfony/Component/Validator/Tests/Constraints/IbanValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ public function getInvalidIbans()
181181
array('CY170020 128 0000 0012 0052 7600'),
182182
array('foo'),
183183
array('123'),
184-
array('0750447346')
184+
array('0750447346'),
185185
);
186186
}
187187
}

src/Symfony/Component/Validator/Tests/Constraints/IssnValidatorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function getFullValidIssn()
6565
array('1684-5315'),
6666
array('1996-0786'),
6767
array('1684-5374'),
68-
array('1996-0794')
68+
array('1996-0794'),
6969
);
7070
}
7171

@@ -94,7 +94,7 @@ public function getInvalidValueIssn()
9494
array('1684-5312'),
9595
array('1996-0783'),
9696
array('1684-537X'),
97-
array('1996-0795')
97+
array('1996-0795'),
9898
);
9999

100100
}

src/Symfony/Component/Validator/Tests/Constraints/LessThanValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function provideInvalidComparisons()
5252
array(2, 2, '2', 'integer'),
5353
array(new \DateTime('2010-01-01'), new \DateTime('2000-01-01'), '2000-01-01 00:00:00', 'DateTime'),
5454
array(new \DateTime('2000-01-01'), new \DateTime('2000-01-01'), '2000-01-01 00:00:00', 'DateTime'),
55-
array('333', '22', "'22'", 'string')
55+
array('333', '22', "'22'", 'string'),
5656
);
5757
}
5858
}

src/Symfony/Component/Validator/Tests/Fixtures/InvalidConstraint.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@
1313

1414
use Symfony\Component\Validator\Constraint;
1515

16-
class InvalidConstraint extends Constraint {}
16+
class InvalidConstraint extends Constraint
17+
{
18+
}

src/Symfony/Component/Validator/Tests/Fixtures/InvalidConstraintValidator.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,6 @@
1111

1212
namespace Symfony\Component\Validator\Tests\Fixtures;
1313

14-
class InvalidConstraintValidator {}
14+
class InvalidConstraintValidator
15+
{
16+
}

0 commit comments

Comments
 (0)