Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 2352-2354 (lines=3) @@
2349
            if (is_string($def)) {
2350
                $constraints[] = 'CHECK (' . $def . ')';
2351
            } else {
2352
                if (isset($def['min'])) {
2353
                    $constraints[] = 'CHECK (' . $field . ' >= ' . $def['min'] . ')';
2354
                }
2355
2356
                if (isset($def['max'])) {
2357
                    $constraints[] = 'CHECK (' . $field . ' <= ' . $def['max'] . ')';
@@ 2356-2358 (lines=3) @@
2353
                    $constraints[] = 'CHECK (' . $field . ' >= ' . $def['min'] . ')';
2354
                }
2355
2356
                if (isset($def['max'])) {
2357
                    $constraints[] = 'CHECK (' . $field . ' <= ' . $def['max'] . ')';
2358
                }
2359
            }
2360
        }
2361