Code Duplication    Length = 14-14 lines in 2 locations

src/DbDumper.php 2 locations

@@ 211-224 (lines=14) @@
208
     *
209
     * @throws \Spatie\DbDumper\Exceptions\CannotSetParameter
210
     */
211
    public function includeTables($includeTables)
212
    {
213
        if (! empty($this->excludeTables)) {
214
            throw CannotSetParameter::conflictingParameters('includeTables', 'excludeTables');
215
        }
216
217
        if (! is_array($includeTables)) {
218
            $includeTables = explode(', ', $includeTables);
219
        }
220
221
        $this->includeTables = $includeTables;
222
223
        return $this;
224
    }
225
226
    /**
227
     * @param string|array $excludeTables
@@ 233-246 (lines=14) @@
230
     *
231
     * @throws \Spatie\DbDumper\Exceptions\CannotSetParameter
232
     */
233
    public function excludeTables($excludeTables)
234
    {
235
        if (! empty($this->includeTables)) {
236
            throw CannotSetParameter::conflictingParameters('excludeTables', 'includeTables');
237
        }
238
239
        if (! is_array($excludeTables)) {
240
            $excludeTables = explode(', ', $excludeTables);
241
        }
242
243
        $this->excludeTables = $excludeTables;
244
245
        return $this;
246
    }
247
248
    /**
249
     * @param string $extraOption