Code Duplication    Length = 14-14 lines in 2 locations

src/DbDumper.php 2 locations

@@ 190-203 (lines=14) @@
187
     *
188
     * @throws \Spatie\DbDumper\Exceptions\CannotSetParameter
189
     */
190
    public function includeTables($includeTables)
191
    {
192
        if (! empty($this->excludeTables)) {
193
            throw CannotSetParameter::conflictingParameters('includeTables', 'excludeTables');
194
        }
195
196
        if (! is_array($includeTables)) {
197
            $includeTables = explode(', ', $includeTables);
198
        }
199
200
        $this->includeTables = $includeTables;
201
202
        return $this;
203
    }
204
205
    /**
206
     * @param string|array $excludeTables
@@ 212-225 (lines=14) @@
209
     *
210
     * @throws \Spatie\DbDumper\Exceptions\CannotSetParameter
211
     */
212
    public function excludeTables($excludeTables)
213
    {
214
        if (! empty($this->includeTables)) {
215
            throw CannotSetParameter::conflictingParameters('excludeTables', 'includeTables');
216
        }
217
218
        if (! is_array($excludeTables)) {
219
            $excludeTables = explode(', ', $excludeTables);
220
        }
221
222
        $this->excludeTables = $excludeTables;
223
224
        return $this;
225
    }
226
227
    /**
228
     * @param string $extraOption