Code Duplication    Length = 4-6 lines in 2 locations

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

@@ 991-994 (lines=4) @@
988
            if (count($matches) > 4) {
989
                $precision = (int)$matches[5];
990
            }
991
            if ($type === 'tinyint' && $limit === 1) {
992
                $type = static::PHINX_TYPE_BOOLEAN;
993
                $limit = null;
994
            }
995
            switch ($type) {
996
                case 'varchar':
997
                    $type = static::PHINX_TYPE_STRING;

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

@@ 1113-1118 (lines=6) @@
1110
                    $type = static::PHINX_TYPE_BINARY;
1111
                    break;
1112
            }
1113
            if ($type === 'tinyint') {
1114
                if ($matches[3] === 1) {
1115
                    $type = static::PHINX_TYPE_BOOLEAN;
1116
                    $limit = null;
1117
                }
1118
            }
1119
1120
            $this->getSqlType($type);
1121