Code Duplication    Length = 12-12 lines in 2 locations

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}

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

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