Code Duplication    Length = 6-6 lines in 2 locations

src/WebSocketsServiceProvider.php 2 locations

@@ 42-47 (lines=6) @@
39
40
    public function publishMigrations()
41
    {
42
        if ( ! class_exists('CreateWebSocketsStatisticsEntries')) {
43
            $this->publishes([
44
                __DIR__ . '/../database/migrations/create_websockets_statistics_entries_table.php.stub' => database_path('migrations/' . date('Y_m_d_His',
45
                        time()) . '_create_websockets_statistics_entries_table.php'),
46
            ], 'migrations');
47
        }
48
49
        if ( ! class_exists('CreateWebSocketsApps')) {
50
            $this->publishes([
@@ 49-54 (lines=6) @@
46
            ], 'migrations');
47
        }
48
49
        if ( ! class_exists('CreateWebSocketsApps')) {
50
            $this->publishes([
51
                __DIR__ . '/../database/migrations/create_websockets_apps_table.php.stub' => database_path('migrations/' . date('Y_m_d_His',
52
                        time()) . '_create_websockets_apps_table.php'),
53
            ], 'migrations');
54
        }
55
    }
56
57
    public function register()