@@ -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) { |
@@ -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); |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | public function register(Application $app) |
| 17 | 17 | { |
| 18 | 18 | if (isset($app['translator'])) { |
| 19 | - $file = __DIR__.'/../Resources/translations/validators.'.$app['locale'].'.xlf'; |
|
| 19 | + $file = __DIR__ . '/../Resources/translations/validators.' . $app['locale'] . '.xlf'; |
|
| 20 | 20 | if (file_exists($file)) { |
| 21 | 21 | $app['translator']->addResource('xliff', $file, $app['locale'], 'validators'); |
| 22 | 22 | } |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | class ZipCode extends Constraint |
| 16 | 16 | { |
| 17 | - const ALL = 'all'; |
|
| 17 | + const ALL = 'all'; |
|
| 18 | 18 | |
| 19 | 19 | public $country = self::ALL; |
| 20 | 20 | |