Code Duplication    Length = 10-10 lines in 2 locations

src/Databases/MySql.php 1 location

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

src/Databases/PostgreSql.php 1 location

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