Code Duplication    Length = 10-13 lines in 2 locations

src/Commands/PublishSeeds.php 2 locations

@@ 66-75 (lines=10) @@
63
     *
64
     * @param \Illuminate\Filesystem\Filesystem $filesystem
65
     */
66
    protected function copyRootSeeder(Filesystem $filesystem)
67
    {
68
        $file = $filesystem->get(__DIR__.'/../database/seeds/DatabaseSeeder.php');
69
70
        $file = $this->removeNamespace($file);
71
72
        $file = str_replace('DatabaseSeeder', 'LarafolioSeeder', $file);
73
74
        $filesystem->put($this->seedPath('LarafolioSeeder.php'), $file);
75
    }
76
77
    /**
78
     * Copy the image table seeder class to the app.
@@ 82-94 (lines=13) @@
79
     *
80
     * @param \Illuminate\Filesystem\Filesystem $filesystem
81
     */
82
    protected function copyImageSeeder(Filesystem $filesystem)
83
    {
84
        $file = $filesystem->get(__DIR__.'/../database/seeds/ImagesTableSeeder.php');
85
86
        $file = $this->removeNamespace($file);
87
88
        $file = str_replace('/../../../tests/_data/images',
89
            '/../../vendor/zachleigh/larafolio/tests/_data/images',
90
            $file
91
        );
92
93
        $filesystem->put($this->seedPath('ImagesTableSeeder.php'), $file);
94
    }
95
96
    /**
97
     * Copy standard seed to the app.