Code Duplication    Length = 4-6 lines in 2 locations

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

@@ 926-931 (lines=6) @@
923
                    $type = static::PHINX_TYPE_BINARY;
924
                    break;
925
            }
926
            if ($type === 'tinyint') {
927
                if ($matches[3] === 1) {
928
                    $type = static::PHINX_TYPE_BOOLEAN;
929
                    $limit = null;
930
                }
931
            }
932
933
            $this->getSqlType($type);
934

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

@@ 845-848 (lines=4) @@
842
            if (count($matches) > 4) {
843
                $precision = (int) $matches[5];
844
            }
845
            if ($type === 'tinyint' && $limit === 1) {
846
                $type = static::PHINX_TYPE_BOOLEAN;
847
                $limit = null;
848
            }
849
            switch ($type) {
850
                case 'varchar':
851
                    $type = static::PHINX_TYPE_STRING;