Code Duplication    Length = 10-12 lines in 2 locations

src/Components/Database/Installer.php 1 location

@@ 88-99 (lines=12) @@
85
86
        $this->task(
87
            'Creating default database configuration',
88
            function () {
89
                if (! File::exists(config_path('database.php'))) {
90
                    File::copy(
91
                        static::CONFIG_FILE,
92
                        config_path('database.php')
93
                    );
94
95
                    return true;
96
                }
97
98
                return false;
99
            }
100
        );
101
102
        $this->task(

src/Components/Log/Installer.php 1 location

@@ 46-55 (lines=10) @@
43
44
        $this->task(
45
            'Creating default logging configuration',
46
            function () {
47
                if (! File::exists(config_path('logging.php'))) {
48
                    return File::copy(
49
                        static::CONFIG_FILE,
50
                        config_path('logging.php')
51
                    );
52
                }
53
54
                return false;
55
            }
56
        );
57
58
        $this->info('Usage:');