Code Duplication    Length = 4-5 lines in 2 locations

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

@@ 1333-1337 (lines=5) @@
1330
            if (isset(self::$supportedColumnTypes[$typeLC])) {
1331
                // the type is an explicitly supported type
1332
                $name = $typeLC;
1333
            } elseif ($typeLC === 'tinyint' && $limit == 1) {
1334
                // the type is a MySQL-style boolean
1335
                $name = static::PHINX_TYPE_BOOLEAN;
1336
                $limit = null;
1337
            } elseif (isset(self::$supportedColumnTypeAliases[$typeLC])) {
1338
                // the type is an alias for a supported type
1339
                $name = self::$supportedColumnTypeAliases[$typeLC];
1340
            } elseif (in_array($typeLC, self::$unsupportedColumnTypes)) {

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

@@ 998-1001 (lines=4) @@
995
            if (count($matches) > 4) {
996
                $scale = (int)$matches[5];
997
            }
998
            if ($type === 'tinyint' && $limit === 1) {
999
                $type = static::PHINX_TYPE_BOOLEAN;
1000
                $limit = null;
1001
            }
1002
            switch ($type) {
1003
                case 'varchar':
1004
                    $type = static::PHINX_TYPE_STRING;