Code Duplication    Length = 11-11 lines in 2 locations

src/DB/DirectoryCreator.php 2 locations

@@ 40-50 (lines=11) @@
37
    /**
38
     * Create factory file stub.
39
     */
40
    protected function createFactoriesFile()
41
    {
42
        $stub = file_get_contents(__DIR__.'/Stubs/factory.stub');
43
44
        $this->writeFile(
45
            $this->config->getFactoryDirectory('ModelFactory.php'),
46
            $stub
47
        );
48
49
        $this->output->writeInfo('Created ModelFactory file.');
50
    }
51
52
    /**
53
     * Create seeder file stub.
@@ 55-65 (lines=11) @@
52
    /**
53
     * Create seeder file stub.
54
     */
55
    protected function createSeederFile()
56
    {
57
        $stub = file_get_contents(__DIR__.'/Stubs/seeder.stub');
58
59
        $this->writeFile(
60
            $this->config->getSeedDirectory('DatabaseSeeder.php'),
61
            $stub
62
        );
63
64
        $this->output->writeInfo('Created DatabaseSeeder file.');
65
    }
66
}
67