Code Duplication    Length = 9-9 lines in 4 locations

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

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

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

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

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

@@ 963-971 (lines=9) @@
960
     * @param  mixed $default
961
     * @return string
962
     */
963
    protected function getDefaultValueDefinition($default)
964
    {
965
        if (is_string($default) && 'CURRENT_TIMESTAMP' !== $default) {
966
            $default = $this->getConnection()->quote($default);
967
        } elseif (is_bool($default)) {
968
            $default = $this->castToBool($default);
969
        }
970
971
        return isset($default) ? ' DEFAULT ' . $default : '';
972
    }
973
974
    /**

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

@@ 1007-1015 (lines=9) @@
1004
     * @param  mixed $default
1005
     * @return string
1006
     */
1007
    protected function getDefaultValueDefinition($default)
1008
    {
1009
        if (is_string($default) && 'CURRENT_TIMESTAMP' !== $default) {
1010
            $default = $this->getConnection()->quote($default);
1011
        } elseif (is_bool($default)) {
1012
            $default = $this->castToBool($default);
1013
        }
1014
1015
        return isset($default) ? ' DEFAULT ' . $default : '';
1016
    }
1017
1018
    /**