Code Duplication    Length = 9-9 lines in 4 locations

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

@@ 910-918 (lines=9) @@
907
     * @param  mixed $default
908
     * @return string
909
     */
910
    protected function getDefaultValueDefinition($default)
911
    {
912
        if (is_string($default) && 'CURRENT_TIMESTAMP' !== $default) {
913
            $default = $this->getConnection()->quote($default);
914
        } elseif (is_bool($default)) {
915
            $default = $this->castToBool($default);
916
        }
917
918
        return isset($default) ? 'DEFAULT ' . $default : '';
919
    }
920
921
    /**

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

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