Completed
Pull Request — master (#29)
by Yann
01:36
created
src/Bridge/Symfony/Validator/Constraints/EnumValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     public function validate($value, Constraint $constraint): void
33 33
     {
34 34
         if (!$constraint instanceof Enum) {
35
-            throw new UnexpectedTypeException($constraint, __NAMESPACE__.'\Enum');
35
+            throw new UnexpectedTypeException($constraint, __NAMESPACE__ . '\Enum');
36 36
         }
37 37
 
38 38
         $constraint->choices  = null;
Please login to merge, or discard this patch.
src/Exception/CannotExtractConstantsException.php 1 patch
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,16 +15,16 @@
 block discarded – undo
15 15
 
16 16
     public static function classDoNotExists(string $class): self
17 17
     {
18
-        return new self("Class $class do not exists.");
18
+        return new self("class $class do not exists.");
19 19
     }
20 20
 
21 21
     public static function classHasNoPublicConstant(string $class): self
22 22
     {
23
-        return new self("Class $class has no public constant.");
23
+        return new self("class $class has no public constant.");
24 24
     }
25 25
 
26 26
     public static function noConstantMathingPattern(string $pattern): self
27 27
     {
28
-        return new self("Pattern $pattern matches no constant.");
28
+        return new self("pattern $pattern matches no constant.");
29 29
     }
30 30
 }
Please login to merge, or discard this patch.