Code Duplication    Length = 4-6 lines in 2 locations

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

@@ 831-834 (lines=4) @@
828
            if (count($matches) > 4) {
829
                $precision = (int)$matches[5];
830
            }
831
            if ($type === 'tinyint' && $limit === 1) {
832
                $type = static::PHINX_TYPE_BOOLEAN;
833
                $limit = null;
834
            }
835
            switch ($type) {
836
                case 'varchar':
837
                    $type = static::PHINX_TYPE_STRING;

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

@@ 884-889 (lines=6) @@
881
                    $type = static::PHINX_TYPE_BINARY;
882
                    break;
883
            }
884
            if ($type === 'tinyint') {
885
                if ($matches[3] === 1) {
886
                    $type = static::PHINX_TYPE_BOOLEAN;
887
                    $limit = null;
888
                }
889
            }
890
891
            $this->getSqlType($type);
892