Code Duplication    Length = 4-6 lines in 2 locations

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

@@ 966-969 (lines=4) @@
963
            if (count($matches) > 4) {
964
                $scale = (int)$matches[5];
965
            }
966
            if ($type === 'tinyint' && $limit === 1) {
967
                $type = static::PHINX_TYPE_BOOLEAN;
968
                $limit = null;
969
            }
970
            switch ($type) {
971
                case 'varchar':
972
                    $type = static::PHINX_TYPE_STRING;

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

@@ 1139-1144 (lines=6) @@
1136
                    $type = static::PHINX_TYPE_BINARY;
1137
                    break;
1138
            }
1139
            if ($type === 'tinyint') {
1140
                if ($matches[3] === 1) {
1141
                    $type = static::PHINX_TYPE_BOOLEAN;
1142
                    $limit = null;
1143
                }
1144
            }
1145
1146
            try {
1147
                // Call this to check if parsed type is supported.