Completed
Push — master ( 7de295...af7f90 )
by Ivan
26:37 queued 11:35
created
src/schema/TableColumn.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
             $instance->setLength($data['length']);
52 52
         }
53 53
         if ($instance->getBasicType() === 'enum' && strpos($instance->getType(), 'enum(') === 0) {
54
-            $temp = array_map(function ($v) {
54
+            $temp = array_map(function($v) {
55 55
                 return str_replace("''", "'", $v);
56 56
             }, explode("','", substr($instance->getType(), 6, -2)));
57 57
             $instance->setValues($temp);
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
                 $instance->setDefault(null);
81 81
             }
82 82
         }
83
-        if ($instance->getBasicType() === 'text' && isset($data['CHAR_LENGTH']) && (int)$data['CHAR_LENGTH']) {
83
+        if ($instance->getBasicType() === 'text' && isset($data['CHAR_LENGTH']) && (int) $data['CHAR_LENGTH']) {
84 84
             $instance->setLength($data['CHAR_LENGTH']);
85 85
         }
86 86
         return $instance;
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
     }
175 175
     public function getLength(): int
176 176
     {
177
-        return (int)$this->length;
177
+        return (int) $this->length;
178 178
     }
179 179
     public function setLength(int $length): static
180 180
     {
Please login to merge, or discard this patch.