Code Duplication    Length = 5-5 lines in 2 locations

src/MessengerServiceProvider.php 2 locations

@@ 34-38 (lines=5) @@
31
            ], 'views');
32
33
            // Publishing the migration files.
34
            if (empty(glob(database_path('migrations/*_create_threads_table.php')))) {
35
                $this->publishes([
36
                    __DIR__.'/../database/migrations/0000_00_00_000000_create_threads_table.php' => database_path('migrations/'.date('Y_m_d_His', time()).'_create_threads_table.php'),
37
                ], 'migrations');
38
            }
39
40
            // Publishing the migration files.
41
            if (empty(glob(database_path('migrations/*_create_messages_table.php')))) {
@@ 41-45 (lines=5) @@
38
            }
39
40
            // Publishing the migration files.
41
            if (empty(glob(database_path('migrations/*_create_messages_table.php')))) {
42
                $this->publishes([
43
                    __DIR__.'/../database/migrations/0000_00_00_000000_create_messages_table.php' => database_path('migrations/'.date('Y_m_d_His', time()).'_create_messages_table.php'),
44
                ], 'migrations');
45
            }
46
47
            // Registering package commands.
48
            $this->commands([