Code Duplication    Length = 4-6 lines in 2 locations

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

@@ 840-843 (lines=4) @@
837
            if (count($matches) > 4) {
838
                $precision = (int)$matches[5];
839
            }
840
            if ($type === 'tinyint' && $limit === 1) {
841
                $type = static::PHINX_TYPE_BOOLEAN;
842
                $limit = null;
843
            }
844
            switch ($type) {
845
                case 'varchar':
846
                    $type = static::PHINX_TYPE_STRING;

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

@@ 934-939 (lines=6) @@
931
                    $type = static::PHINX_TYPE_BINARY;
932
                    break;
933
            }
934
            if ($type === 'tinyint') {
935
                if ($matches[3] === 1) {
936
                    $type = static::PHINX_TYPE_BOOLEAN;
937
                    $limit = null;
938
                }
939
            }
940
941
            $this->getSqlType($type);
942