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

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