Code Duplication    Length = 4-6 lines in 2 locations

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

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

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

@@ 1092-1097 (lines=6) @@
1089
                    $type = static::PHINX_TYPE_BINARY;
1090
                    break;
1091
            }
1092
            if ($type === 'tinyint') {
1093
                if ($matches[3] === 1) {
1094
                    $type = static::PHINX_TYPE_BOOLEAN;
1095
                    $limit = null;
1096
                }
1097
            }
1098
1099
            $this->getSqlType($type);
1100