Code Duplication    Length = 8-9 lines in 2 locations

src/Phinx/Db/Adapter/MysqlAdapter.php 1 location

@@ 977-985 (lines=9) @@
974
                        $limit = null;
975
                    }
976
                    break;
977
                case 'char':
978
                    $type = static::PHINX_TYPE_CHAR;
979
                    if ($limit === 255) {
980
                        $limit = null;
981
                    }
982
                    if ($limit === 36) {
983
                        $type = static::PHINX_TYPE_UUID;
984
                    }
985
                    break;
986
                case 'tinyint':
987
                    $type = static::PHINX_TYPE_INTEGER;
988
                    $limit = static::INT_TINY;

src/Phinx/Db/Adapter/SQLiteAdapter.php 1 location

@@ 1152-1159 (lines=8) @@
1149
                        $name = static::PHINX_TYPE_STRING;
1150
                        break;
1151
                    case 'tinyint':
1152
                    case 'tinyinteger':
1153
                        if ($limit == 1) {
1154
                            $name = static::PHINX_TYPE_BOOLEAN;
1155
                            $limit = null;
1156
                        } else {
1157
                            $name = static::PHINX_TYPE_SMALL_INTEGER;
1158
                        }
1159
                        break;
1160
                    case 'smallint':
1161
                        $name = static::PHINX_TYPE_SMALL_INTEGER;
1162
                        break;