Code Duplication    Length = 3-3 lines in 2 locations

lib/Doctrine/DBAL/Platforms/AbstractPlatform.php 2 locations

@@ 2327-2329 (lines=3) @@
2324
            if (is_string($def)) {
2325
                $constraints[] = 'CHECK (' . $def . ')';
2326
            } else {
2327
                if (isset($def['min'])) {
2328
                    $constraints[] = 'CHECK (' . $field . ' >= ' . $def['min'] . ')';
2329
                }
2330
2331
                if (isset($def['max'])) {
2332
                    $constraints[] = 'CHECK (' . $field . ' <= ' . $def['max'] . ')';
@@ 2331-2333 (lines=3) @@
2328
                    $constraints[] = 'CHECK (' . $field . ' >= ' . $def['min'] . ')';
2329
                }
2330
2331
                if (isset($def['max'])) {
2332
                    $constraints[] = 'CHECK (' . $field . ' <= ' . $def['max'] . ')';
2333
                }
2334
            }
2335
        }
2336