Code Duplication    Length = 12-12 lines in 2 locations

src/Phinx/Config/Config.php 2 locations

@@ 246-257 (lines=12) @@
243
    /**
244
     * {@inheritdoc}
245
     */
246
    public function getMigrationPaths()
247
    {
248
        if (!isset($this->values['paths']['migrations'])) {
249
            throw new \UnexpectedValueException('Migrations path missing from config file');
250
        }
251
252
        if (is_string($this->values['paths']['migrations'])) {
253
            $this->values['paths']['migrations'] = [$this->values['paths']['migrations']];
254
        }
255
256
        return $this->values['paths']['migrations'];
257
    }
258
259
    /**
260
     * Gets the base class name for migrations.
@@ 275-286 (lines=12) @@
272
    /**
273
     * {@inheritdoc}
274
     */
275
    public function getSeedPaths()
276
    {
277
        if (!isset($this->values['paths']['seeds'])) {
278
            throw new \UnexpectedValueException('Seeds path missing from config file');
279
        }
280
281
        if (is_string($this->values['paths']['seeds'])) {
282
            $this->values['paths']['seeds'] = [$this->values['paths']['seeds']];
283
        }
284
285
        return $this->values['paths']['seeds'];
286
    }
287
288
    /**
289
     * Gets the base class name for seeders.