Code Duplication    Length = 7-7 lines in 2 locations

src/Console/Commands/StartServer.php 1 location

@@ 109-115 (lines=7) @@
106
     */
107
    protected function configureManagers()
108
    {
109
        $this->laravel->singleton(ChannelManager::class, function () {
110
            $mode = config('websockets.replication.mode', 'local');
111
112
            $class = config("websockets.replication.modes.{$mode}.channel_manager");
113
114
            return new $class($this->loop);
115
        });
116
    }
117
118
    /**

src/WebSocketsServiceProvider.php 1 location

@@ 70-76 (lines=7) @@
67
            return new $class;
68
        });
69
70
        $this->app->singleton(StatisticsCollector::class, function () {
71
            $replicationMode = config('websockets.replication.mode', 'local');
72
73
            $class = config("websockets.replication.modes.{$replicationMode}.collector");
74
75
            return new $class;
76
        });
77
    }
78
79
    /**