Passed
Push — master ( 6bffed...8a84f0 )
by Jarddel
02:49 queued 15s
created
src/EnumType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     {
26 26
         static::assignValues();
27 27
 
28
-        return "ENUM(".implode(", ", static::$descriptions ? : static::$values).")";
28
+        return "ENUM(".implode(", ", static::$descriptions ?: static::$values).")";
29 29
     }
30 30
 
31 31
     /**
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      */
56 56
     protected static function getInstance(): EnumInterface
57 57
     {
58
-        $type = strtolower(preg_replace(['(.*[\\\/])','/Enum|Type/','/(?<!^)[A-Z]/'], ['','','_$0'], static::class));
58
+        $type = strtolower(preg_replace(['(.*[\\\/])', '/Enum|Type/', '/(?<!^)[A-Z]/'], ['', '', '_$0'], static::class));
59 59
 
60 60
         return clone static::getType($type);
61 61
     }
Please login to merge, or discard this patch.