Passed
Push — master ( 586586...0adfc5 )
by Marijan
01:32
created
src/Enum.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     private function assertValidConstructionContext(): void
59 59
     {
60 60
         if (isset(self::$enumConstructionContext[get_parent_class($this)])) {
61
-            return ;
61
+            return;
62 62
         }
63 63
 
64 64
         throw new LogicException(
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
     private function assertCorrectlyInitialized(): void
73 73
     {
74 74
         if ($this->correctlyInitialized) {
75
-            return ;
75
+            return;
76 76
         }
77 77
 
78 78
         throw new LogicException(
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
     private static function ensureEnumsAreDiscoveredForClass(string $class)
268 268
     {
269 269
         if (isset(self::$existingEnums[$class])) {
270
-            return ;
270
+            return;
271 271
         }
272 272
 
273 273
         try {
Please login to merge, or discard this patch.
src/functions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     $pattern = '/^[a-zA-Z_][a-zA-Z_0-9]*$/';
50 50
 
51 51
     if (preg_match($pattern, $name)) {
52
-        return ;
52
+        return;
53 53
     }
54 54
 
55 55
     throw new LogicException(sprintf('Element name "%s" does not match pattern %s', $name, $pattern));
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 function assertEnumClassIsAbstract(string $fqn): void
64 64
 {
65 65
     if ((new ReflectionClass($fqn))->isAbstract()) {
66
-        return ;
66
+        return;
67 67
     }
68 68
 
69 69
     throw new LogicException(sprintf('Enum %s must be declared as abstract', $fqn));
Please login to merge, or discard this patch.