Code Duplication    Length = 8-8 lines in 2 locations

src/Migrations/Migrator.php 1 location

@@ 69-76 (lines=8) @@
66
     *
67
     * @return string
68
     */
69
    public function getPath()
70
    {
71
        $config = $this->component->get('migration');
72
73
        $path = (is_array($config) && array_key_exists('path', $config)) ? $config['path'] : config('components.paths.generator.migration');
74
75
        return $this->component->getExtraPath($path);
76
    }
77
78
    /**
79
     * Get migration files.

src/Migrations/Seeder.php 1 location

@@ 69-76 (lines=8) @@
66
     *
67
     * @return string
68
     */
69
    public function getPath()
70
    {
71
        $config = $this->component->get('seed');
72
73
        $path = (is_array($config) && array_key_exists('path', $config)) ? $config['path'] : config('components.paths.generator.seed');
74
75
        return $this->component->getExtraPath($path);
76
    }
77
78
    /**
79
     * Get seed files.