Code Duplication    Length = 10-10 lines in 2 locations

src/Databases/MySql.php 1 location

@@ 118-127 (lines=10) @@
115
     *
116
     * @return \Spatie\DbDumper\Databases\MySql
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\MySql

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