Code Duplication    Length = 4-6 lines in 2 locations

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

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

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

@@ 1101-1106 (lines=6) @@
1098
                    $type = static::PHINX_TYPE_BINARY;
1099
                    break;
1100
            }
1101
            if ($type === 'tinyint') {
1102
                if ($matches[3] === 1) {
1103
                    $type = static::PHINX_TYPE_BOOLEAN;
1104
                    $limit = null;
1105
                }
1106
            }
1107
1108
            $this->getSqlType($type);
1109