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

@@ 954-962 (lines=9) @@
951
     * @param  mixed $default
952
     * @return string
953
     */
954
    protected function getDefaultValueDefinition($default)
955
    {
956
        if (is_string($default) && 'CURRENT_TIMESTAMP' !== $default) {
957
            $default = $this->getConnection()->quote($default);
958
        } elseif (is_bool($default)) {
959
            $default = $this->castToBool($default);
960
        }
961
962
        return isset($default) ? ' DEFAULT ' . $default : '';
963
    }
964
965
    /**

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

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

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

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