Completed
Push — master ( 1798cf...75b2e6 )
by Bohuslav
01:48
created
src/Enum/Enum.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     {
37 37
         $class = get_called_class();
38 38
         if (!array_key_exists($class, self::$cache)) {
39
-            $reflection           = new \ReflectionClass($class);
39
+            $reflection = new \ReflectionClass($class);
40 40
             self::$cache[$class] = $reflection->getConstants();
41 41
         }
42 42
 
@@ -52,6 +52,6 @@  discard block
 block discarded – undo
52 52
     {
53 53
         $allItems = array_flip(self::toArray());
54 54
 
55
-        return isset($allItems[$value]) ? true:false;
55
+        return isset($allItems[$value]) ? true : false;
56 56
     }
57 57
 }
Please login to merge, or discard this patch.