Code Duplication    Length = 4-6 lines in 2 locations

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

@@ 855-858 (lines=4) @@
852
            if (count($matches) > 4) {
853
                $precision = (int)$matches[5];
854
            }
855
            if ($type === 'tinyint' && $limit === 1) {
856
                $type = static::PHINX_TYPE_BOOLEAN;
857
                $limit = null;
858
            }
859
            switch ($type) {
860
                case 'varchar':
861
                    $type = static::PHINX_TYPE_STRING;

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

@@ 914-919 (lines=6) @@
911
                    $type = static::PHINX_TYPE_BINARY;
912
                    break;
913
            }
914
            if ($type === 'tinyint') {
915
                if ($matches[3] === 1) {
916
                    $type = static::PHINX_TYPE_BOOLEAN;
917
                    $limit = null;
918
                }
919
            }
920
921
            $this->getSqlType($type);
922