Code Duplication    Length = 14-14 lines in 2 locations

src/DbDumper.php 2 locations

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