Code Duplication    Length = 14-14 lines in 2 locations

src/DbDumper.php 2 locations

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