Code Duplication    Length = 12-12 lines in 2 locations

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

@@ 366-377 (lines=12) @@
363
        return $columns;
364
    }
365
366
    protected function parseDefault($default)
367
    {
368
        $default = preg_replace(["/\('(.*)'\)/", "/\(\((.*)\)\)/", "/\((.*)\)/"], '$1', $default);
369
370
        if (strtoupper($default) === 'NULL') {
371
            $default = null;
372
        } elseif (is_numeric($default)) {
373
            $default = (int)$default;
374
        }
375
376
        return $default;
377
    }
378
379
    /**
380
     * {@inheritdoc}

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

@@ 395-406 (lines=12) @@
392
        return $columns;
393
    }
394
395
    protected function parseDefault($default)
396
    {
397
        $default = preg_replace(["/\('(.*)'\)/", "/\(\((.*)\)\)/", "/\((.*)\)/"], '$1', $default);
398
399
        if (strtoupper($default) === 'NULL') {
400
            $default = null;
401
        } elseif (is_numeric($default)) {
402
            $default = (int)$default;
403
        }
404
405
        return $default;
406
    }
407
408
    /**
409
     * {@inheritdoc}