Passed
Push — master ( 24d123...62d45d )
by Marijan
02:13
created
src/Enum.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     {
60 60
         //Expected usage is new class extends Enum so first parent should be our construction context
61 61
         if (isset(self::$enumConstructionContext[get_parent_class($this)])) {
62
-            return ;
62
+            return;
63 63
         }
64 64
 
65 65
         throw new LogicException(
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     private function assertCorrectlyInitialized(): void
74 74
     {
75 75
         if ($this->correctlyInitialized) {
76
-            return ;
76
+            return;
77 77
         }
78 78
 
79 79
         throw new LogicException(
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
     private static function ensureEnumsAreDiscoveredForClass(string $class)
269 269
     {
270 270
         if (isset(self::$existingEnums[$class])) {
271
-            return ;
271
+            return;
272 272
         }
273 273
 
274 274
         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
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     $pattern = '/^[a-zA-Z_][a-zA-Z_0-9]*$/i';
20 20
 
21 21
     if (preg_match($pattern, $name)) {
22
-        return ;
22
+        return;
23 23
     }
24 24
 
25 25
     throw new LogicException(sprintf('Element name "%s" does not match pattern %s', $name, $pattern));
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 function assertEnumClassIsAbstract(string $fqn): void
34 34
 {
35 35
     if ((new ReflectionClass($fqn))->isAbstract()) {
36
-        return ;
36
+        return;
37 37
     }
38 38
 
39 39
     throw new LogicException(sprintf('Enum %s must be declared as abstract', $fqn));
Please login to merge, or discard this patch.