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/MysqlAdapter.php 1 location

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

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
    /**