Code Duplication    Length = 4-6 lines in 2 locations

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

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

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

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