Code Duplication    Length = 10-10 lines in 2 locations

source/Spiral/Database/Drivers/MySQL/Schemas/MySQLColumn.php 1 location

@@ 188-197 (lines=10) @@
185
186
        $column->type = $matches['type'];
187
188
        if (!empty($matches['options'])) {
189
            $options = explode(',', $matches['options']);
190
191
            if (count($options) > 1) {
192
                $column->precision = (int)$options[0];
193
                $column->scale = (int)$options[1];
194
            } else {
195
                $column->size = (int)$options[0];
196
            }
197
        }
198
199
        //Fetching enum values
200
        if ($column->abstractType() == 'enum' && !empty($options)) {

source/Spiral/Database/Drivers/SQLite/Schemas/SQLiteColumn.php 1 location

@@ 172-181 (lines=10) @@
169
        $column->type = $matches['type'];
170
171
        //Fetching size options
172
        if (!empty($matches['options'])) {
173
            $options = explode(',', $matches['options']);
174
175
            if (count($options) > 1) {
176
                $column->precision = (int)$options[0];
177
                $column->scale = (int)$options[1];
178
            } else {
179
                $column->size = (int)$options[0];
180
            }
181
        }
182
183
        if ($column->type == 'enum') {
184
            //Quoted column name