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

@@ 899-904 (lines=6) @@
896
                    $type = static::PHINX_TYPE_BINARY;
897
                    break;
898
            }
899
            if ($type === 'tinyint') {
900
                if ($matches[3] === 1) {
901
                    $type = static::PHINX_TYPE_BOOLEAN;
902
                    $limit = null;
903
                }
904
            }
905
906
            $this->getSqlType($type);
907