Completed
Pull Request — master (#55)
by Sullivan
30:14 queued 26:55
created
Category
src/Bundle/DependencyInjection/Compiler/TranslationPass.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,10 +29,10 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/Constraints/IsoCodesGeneric.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,6 +14,6 @@
 block discarded – undo
14 14
      */
15 15
     public function validatedBy()
16 16
     {
17
-        return __CLASS__.'Validator';
17
+        return __CLASS__ . 'Validator';
18 18
     }
19 19
 }
Please login to merge, or discard this patch.
src/Constraints/IsoCodesGenericValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Provider/IsoCodesValidatorServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/Constraints/ZipCode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.