Code Duplication    Length = 12-12 lines in 2 locations

src/Phinx/Config/Config.php 2 locations

@@ 258-269 (lines=12) @@
255
     *
256
     * @throws \UnexpectedValueException
257
     */
258
    public function getMigrationPaths()
259
    {
260
        if (!isset($this->values['paths']['migrations'])) {
261
            throw new UnexpectedValueException('Migrations path missing from config file');
262
        }
263
264
        if (is_string($this->values['paths']['migrations'])) {
265
            $this->values['paths']['migrations'] = [$this->values['paths']['migrations']];
266
        }
267
268
        return $this->values['paths']['migrations'];
269
    }
270
271
    /**
272
     * Gets the base class name for migrations.
@@ 290-301 (lines=12) @@
287
     *
288
     * @throws \UnexpectedValueException
289
     */
290
    public function getSeedPaths()
291
    {
292
        if (!isset($this->values['paths']['seeds'])) {
293
            throw new UnexpectedValueException('Seeds path missing from config file');
294
        }
295
296
        if (is_string($this->values['paths']['seeds'])) {
297
            $this->values['paths']['seeds'] = [$this->values['paths']['seeds']];
298
        }
299
300
        return $this->values['paths']['seeds'];
301
    }
302
303
    /**
304
     * Get the template file name.