@@ -51,7 +51,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | { |