Completed
Push — master ( af7f90...e7c0cc )
by Ivan
14:43
created
src/schema/TableColumn.php 2 patches
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.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
             $this->btype = 'enum';
128 128
         } elseif (strpos($type, 'json') !== false) {
129 129
             $this->btype = 'json';
130
-        }  elseif (strpos($type, 'text') !== false || strpos($type, 'char') !== false) {
130
+        } elseif (strpos($type, 'text') !== false || strpos($type, 'char') !== false) {
131 131
             $this->btype = 'text';
132 132
         } elseif (strpos($type, 'int') !== false ||
133 133
             strpos($type, 'bit') !== false ||
Please login to merge, or discard this patch.