Code Duplication    Length = 4-6 lines in 2 locations

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

@@ 905-910 (lines=6) @@
902
                    $type = static::PHINX_TYPE_BINARY;
903
                    break;
904
            }
905
            if ($type === 'tinyint') {
906
                if ($matches[3] === 1) {
907
                    $type = static::PHINX_TYPE_BOOLEAN;
908
                    $limit = null;
909
                }
910
            }
911
912
            $this->getSqlType($type);
913

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

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