Code Duplication    Length = 14-14 lines in 2 locations

src/DbDumper.php 2 locations

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