Code Duplication    Length = 9-9 lines in 4 locations

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

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

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

@@ 944-952 (lines=9) @@
941
     * @param  mixed $default
942
     * @return string
943
     */
944
    protected function getDefaultValueDefinition($default)
945
    {
946
        if (is_string($default) && 'CURRENT_TIMESTAMP' !== $default) {
947
            $default = $this->getConnection()->quote($default);
948
        } elseif (is_bool($default)) {
949
            $default = $this->castToBool($default);
950
        }
951
952
        return isset($default) ? ' DEFAULT ' . $default : '';
953
    }
954
955
    /**

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

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

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

@@ 404-412 (lines=9) @@
401
     * @param  mixed $default
402
     * @return string
403
     */
404
    protected function getDefaultValueDefinition($default)
405
    {
406
        if (is_string($default) && 'CURRENT_TIMESTAMP' !== $default) {
407
            $default = $this->getConnection()->quote($default);
408
        } elseif (is_bool($default)) {
409
            $default = $this->castToBool($default);
410
        }
411
412
        return isset($default) ? ' DEFAULT ' . $default : '';
413
    }
414
415
    /**