@@ -17,15 +17,15 @@ |
||
| 17 | 17 | /** |
| 18 | 18 | * @deprecated since 1.1, to be removed in 2.0. |
| 19 | 19 | */ |
| 20 | - const US = 'US'; |
|
| 20 | + const US = 'US'; |
|
| 21 | 21 | /** |
| 22 | 22 | * @deprecated since 1.1, to be removed in 2.0. |
| 23 | 23 | */ |
| 24 | - const CANADA = 'Canada'; |
|
| 24 | + const CANADA = 'Canada'; |
|
| 25 | 25 | /** |
| 26 | 26 | * @deprecated since 1.1, to be removed in 2.0. |
| 27 | 27 | */ |
| 28 | - const FRANCE = 'France'; |
|
| 28 | + const FRANCE = 'France'; |
|
| 29 | 29 | /** |
| 30 | 30 | * @deprecated since 1.1, to be removed in 2.0. |
| 31 | 31 | */ |
@@ -29,7 +29,7 @@ |
||
| 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 | 35 | ->in(__DIR__.'/../../../Resources/translations') |
@@ -18,9 +18,10 @@ |
||
| 18 | 18 | { |
| 19 | 19 | parent::validate($value, $constraint); |
| 20 | 20 | |
| 21 | - if (class_implements()) |
|
| 22 | - // Have to instantiate it. See: https://github.com/ronanguilloux/IsoCodes/issues/12 |
|
| 21 | + if (class_implements()) { |
|
| 22 | + // Have to instantiate it. See: https://github.com/ronanguilloux/IsoCodes/issues/12 |
|
| 23 | 23 | $ssn = new IsoCodes\Ssn(); |
| 24 | + } |
|
| 24 | 25 | var_dump($ssn); |
| 25 | 26 | |
| 26 | 27 | if ($value && !$ssn->validate($value)) { |