Code Duplication    Length = 4-6 lines in 2 locations

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

@@ 850-853 (lines=4) @@
847
            if (count($matches) > 4) {
848
                $precision = (int)$matches[5];
849
            }
850
            if ($type === 'tinyint' && $limit === 1) {
851
                $type = static::PHINX_TYPE_BOOLEAN;
852
                $limit = null;
853
            }
854
            switch ($type) {
855
                case 'varchar':
856
                    $type = static::PHINX_TYPE_STRING;

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

@@ 874-879 (lines=6) @@
871
                    $type = static::PHINX_TYPE_BINARY;
872
                    break;
873
            }
874
            if ($type === 'tinyint') {
875
                if ($matches[3] === 1) {
876
                    $type = static::PHINX_TYPE_BOOLEAN;
877
                    $limit = null;
878
                }
879
            }
880
881
            $this->getSqlType($type);
882