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.
@@ 285-296 (lines=12) @@
282
    /**
283
     * {@inheritdoc}
284
     */
285
    public function getSeedPaths()
286
    {
287
        if (!isset($this->values['paths']['seeds'])) {
288
            throw new \UnexpectedValueException('Seeds path missing from config file');
289
        }
290
291
        if (is_string($this->values['paths']['seeds'])) {
292
            $this->values['paths']['seeds'] = [$this->values['paths']['seeds']];
293
        }
294
295
        return $this->values['paths']['seeds'];
296
    }
297
298
    /**
299
     * Get the template file name.