Code Duplication    Length = 9-9 lines in 4 locations

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

@@ 997-1005 (lines=9) @@
994
     * @param  mixed $default
995
     * @return string
996
     */
997
    protected function getDefaultValueDefinition($default)
998
    {
999
        if (is_string($default) && 'CURRENT_TIMESTAMP' !== $default) {
1000
            $default = $this->getConnection()->quote($default);
1001
        } elseif (is_bool($default)) {
1002
            $default = $this->castToBool($default);
1003
        }
1004
1005
        return isset($default) ? ' DEFAULT ' . $default : '';
1006
    }
1007
1008
    /**

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

@@ 882-890 (lines=9) @@
879
     * @param  mixed $default
880
     * @return string
881
     */
882
    protected function getDefaultValueDefinition($default)
883
    {
884
        if (is_string($default) && 'CURRENT_TIMESTAMP' !== $default) {
885
            $default = $this->getConnection()->quote($default);
886
        } elseif (is_bool($default)) {
887
            $default = $this->castToBool($default);
888
        }
889
890
        return isset($default) ? 'DEFAULT ' . $default : '';
891
    }
892
893
    /**

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

@@ 378-386 (lines=9) @@
375
     * @param  mixed $default
376
     * @return string
377
     */
378
    protected function getDefaultValueDefinition($default)
379
    {
380
        if (is_string($default) && 'CURRENT_TIMESTAMP' !== $default) {
381
            $default = $this->getConnection()->quote($default);
382
        } elseif (is_bool($default)) {
383
            $default = $this->castToBool($default);
384
        }
385
386
        return isset($default) ? ' DEFAULT ' . $default : '';
387
    }
388
389
    /**

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

@@ 923-931 (lines=9) @@
920
     * @param  mixed $default
921
     * @return string
922
     */
923
    protected function getDefaultValueDefinition($default)
924
    {
925
        if (is_string($default) && 'CURRENT_TIMESTAMP' !== $default) {
926
            $default = $this->getConnection()->quote($default);
927
        } elseif (is_bool($default)) {
928
            $default = $this->castToBool($default);
929
        }
930
931
        return isset($default) ? ' DEFAULT ' . $default : '';
932
    }
933
934
    /**