Code Duplication    Length = 10-10 lines in 2 locations

src/Databases/PostgreSql.php 1 location

@@ 118-127 (lines=10) @@
115
     *
116
     * @return \Spatie\DbDumper\Databases\PostgreSql
117
     */
118
    public function setDumpBinaryPath($dumpBinaryPath)
119
    {
120
        if ($dumpBinaryPath !== '' && substr($dumpBinaryPath, -1) !== '/') {
121
            $dumpBinaryPath .= '/';
122
        }
123
124
        $this->dumpBinaryPath = $dumpBinaryPath;
125
126
        return $this;
127
    }
128
129
    /**
130
     * @return \Spatie\DbDumper\Databases\PostgreSql

src/Databases/MySql.php 1 location

@@ 119-128 (lines=10) @@
116
     *
117
     * @return \Spatie\DbDumper\Databases\MySql
118
     */
119
    public function setDumpBinaryPath($dumpBinaryPath)
120
    {
121
        if ($dumpBinaryPath !== '' && substr($dumpBinaryPath, -1) !== '/') {
122
            $dumpBinaryPath .= '/';
123
        }
124
125
        $this->dumpBinaryPath = $dumpBinaryPath;
126
127
        return $this;
128
    }
129
130
    /**
131
     * @return \Spatie\DbDumper\Databases\MySql