@@ -29,10 +29,10 @@ |
||
29 | 29 | |
30 | 30 | $finder = Finder::create() |
31 | 31 | ->files() |
32 | - ->filter(function (\SplFileInfo $file) { |
|
32 | + ->filter(function(\SplFileInfo $file) { |
|
33 | 33 | return 2 === substr_count($file->getBasename(), '.') && preg_match('/\.\w+$/', $file->getBasename()); |
34 | 34 | }) |
35 | - ->in(__DIR__.'/../../../Resources/translations') |
|
35 | + ->in(__DIR__ . '/../../../Resources/translations') |
|
36 | 36 | ; |
37 | 37 | |
38 | 38 | foreach ($finder as $file) { |
@@ -2,7 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace SLLH\IsoCodesValidator\Constraints; |
4 | 4 | |
5 | -@trigger_error('The '.__NAMESPACE__.'\BbanValidator class is deprecated since 1.2 and will be removed in 2.0. Use '.__NAMESPACE__.'\IsoCodesGenericValidator instead', E_USER_DEPRECATED); |
|
5 | +@trigger_error('The ' . __NAMESPACE__ . '\BbanValidator class is deprecated since 1.2 and will be removed in 2.0. Use ' . __NAMESPACE__ . '\IsoCodesGenericValidator instead', E_USER_DEPRECATED); |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * @author Sullivan Senechal <[email protected]> |
@@ -2,7 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace SLLH\IsoCodesValidator\Constraints; |
4 | 4 | |
5 | -@trigger_error('The '.__NAMESPACE__.'\CifValidator class is deprecated since 1.2 and will be removed in 2.0. Use '.__NAMESPACE__.'\IsoCodesGenericValidator instead', E_USER_DEPRECATED); |
|
5 | +@trigger_error('The ' . __NAMESPACE__ . '\CifValidator class is deprecated since 1.2 and will be removed in 2.0. Use ' . __NAMESPACE__ . '\IsoCodesGenericValidator instead', E_USER_DEPRECATED); |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * @author Sullivan Senechal <[email protected]> |
@@ -2,7 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace SLLH\IsoCodesValidator\Constraints; |
4 | 4 | |
5 | -@trigger_error('The '.__NAMESPACE__.'\CreditCardValidator class is deprecated since 1.2 and will be removed in 2.0. Use '.__NAMESPACE__.'\IsoCodesGenericValidator instead', E_USER_DEPRECATED); |
|
5 | +@trigger_error('The ' . __NAMESPACE__ . '\CreditCardValidator class is deprecated since 1.2 and will be removed in 2.0. Use ' . __NAMESPACE__ . '\IsoCodesGenericValidator instead', E_USER_DEPRECATED); |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * @author Sullivan Senechal <[email protected]> |
@@ -2,7 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace SLLH\IsoCodesValidator\Constraints; |
4 | 4 | |
5 | -@trigger_error('The '.__NAMESPACE__.'\Ean13Validator class is deprecated since 1.2 and will be removed in 2.0. Use '.__NAMESPACE__.'\IsoCodesGenericValidator instead', E_USER_DEPRECATED); |
|
5 | +@trigger_error('The ' . __NAMESPACE__ . '\Ean13Validator class is deprecated since 1.2 and will be removed in 2.0. Use ' . __NAMESPACE__ . '\IsoCodesGenericValidator instead', E_USER_DEPRECATED); |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * @author Sullivan Senechal <[email protected]> |
@@ -2,7 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace SLLH\IsoCodesValidator\Constraints; |
4 | 4 | |
5 | -@trigger_error('The '.__NAMESPACE__.'\IbanValidator class is deprecated since 1.2 and will be removed in 2.0. Use '.__NAMESPACE__.'\IsoCodesGenericValidator instead', E_USER_DEPRECATED); |
|
5 | +@trigger_error('The ' . __NAMESPACE__ . '\IbanValidator class is deprecated since 1.2 and will be removed in 2.0. Use ' . __NAMESPACE__ . '\IsoCodesGenericValidator instead', E_USER_DEPRECATED); |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * @author Sullivan Senechal <[email protected]> |
@@ -2,7 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace SLLH\IsoCodesValidator\Constraints; |
4 | 4 | |
5 | -@trigger_error('The '.__NAMESPACE__.'\InseeValidator class is deprecated since 1.2 and will be removed in 2.0. Use '.__NAMESPACE__.'\IsoCodesGenericValidator instead', E_USER_DEPRECATED); |
|
5 | +@trigger_error('The ' . __NAMESPACE__ . '\InseeValidator class is deprecated since 1.2 and will be removed in 2.0. Use ' . __NAMESPACE__ . '\IsoCodesGenericValidator instead', E_USER_DEPRECATED); |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * @author Sullivan Senechal <[email protected]> |
@@ -14,6 +14,6 @@ |
||
14 | 14 | */ |
15 | 15 | public function validatedBy() |
16 | 16 | { |
17 | - return __CLASS__.'Validator'; |
|
17 | + return __CLASS__ . 'Validator'; |
|
18 | 18 | } |
19 | 19 | } |
@@ -18,7 +18,7 @@ |
||
18 | 18 | parent::validate($value, $constraint); |
19 | 19 | |
20 | 20 | $constraintClass = str_replace('SLLH\\IsoCodesValidator\\Constraints\\', '', get_class($constraint)); |
21 | - $isoCodesClass = 'IsoCodes\\'.$constraintClass; |
|
21 | + $isoCodesClass = 'IsoCodes\\' . $constraintClass; |
|
22 | 22 | |
23 | 23 | if ($value && !$isoCodesClass::validate($value)) { |
24 | 24 | $this->createViolation($constraint->message); |